Skip to content

ERROR "Calling function 'ɵmakeDecorator', function calls are not supported." on production build #2

@SujitGodavarti

Description

@SujitGodavarti

Hi.

Thank you for the example. I've just tried it and works good, but the Frontend.Angular fails on production build:

ng build --prod

ERROR in Error encountered resolving symbol values statically. Calling function 'ɵmakeDecorator', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol Injectable in ..../no
de_modules/ng2-adal/node_modules/@angular/core/core.d.ts, resolving symbol ɵe in ..../node_modules/ng2-adal/node_modules/@angular/core/core.d.ts, resolving symbol ɵe in ..../node_modules/ng2-adal/node_modules/@angular/core/core.d
.ts

Do you have any idea how to fix it?

P.S. the error disappear if I switch off aot (>> ng build --prod --aot=false), but it's not the appropriate solution

Thanks,
Sujit

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