Skip to content

AOT Prod Build Error #2

@adgrace

Description

@adgrace

When I use "ng serve --prod" & "ng build --prod" I get the following error:

Uncaught TypeError: e is not a constructor
    at main.d4a70e53e032158e7133.js:1
    at La (main.d4a70e53e032158e7133.js:1)
    at main.d4a70e53e032158e7133.js:1
    at new t (main.d4a70e53e032158e7133.js:1)
    at Object.rs [as createNgModuleRef] (main.d4a70e53e032158e7133.js:1)
    at e.create (main.d4a70e53e032158e7133.js:1)
    at main.d4a70e53e032158e7133.js:1
    at n.invoke (polyfills.20ab2d163684112c2aba.js:1)
    at Object.onInvoke (main.d4a70e53e032158e7133.js:1)
    at n.invoke (polyfills.20ab2d163684112c2aba.js:1)

I have isolated this package as causing the issue.
The code builds fine and only occurs during runtime. With the prod flag, the code builds and runs fine.

Is this package AOT complient?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions