Skip to content

Modals are not working in angular production builds #2263

@jmue

Description

@jmue

Prerequisites

  • I have read the Contributing Guidelines.
  • I have not leaked any internal/restricted information like screenshots, videos, code snippets, links etc.

What happened?

The modal does not open when using a angular production build, the console shows:

main-KG52S5CJ.js:4  ERROR TypeError: e.showModal is not a function
    at k (chunk-VENRFSKX.js:1:2810)
    at async e.createModalInstance (main-KG52S5CJ.js:8:202854)
    at async e.createContentByTemplateRef (main-KG52S5CJ.js:8:202698)
    at async e.open (main-KG52S5CJ.js:8:202111)
    at async e.open (main-KG52S5CJ.js:8:283970)

What type of frontend framework are you seeing the problem on?

Angular (Standalone)

On which version of the frontend framework are you experiencing the issue?

@angular/[email protected]

Which version of iX do you use?

v4.0.0

Code to produce this issue.

Use the provided source code of https://ix.siemens.io/docs/components/modal/code

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions