Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SujitGodavarti opened this issue Aug 23, 2017 · 4 comments

Comments

@SujitGodavarti
Copy link

SujitGodavarti commented Aug 23, 2017

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

@AnnaShk
Copy link

AnnaShk commented Aug 23, 2017

Having the same issue

@kkoziarski
Copy link
Owner

Hi,

The error you are describing is in the library I'm using: ng2-adal. There is issue reported: sureshchahal/angular2-adal#23 but the library wasn't updated for few months.

You can check out other libraries on https://www.npmjs.com/browse/keyword/adal for example https://www.npmjs.com/package/ng2-adal-aot and test it by replacing ng2-adal with this new one. When I have some time I will test it too.

@AnnaShk
Copy link

AnnaShk commented Aug 23, 2017

Thank you @krzyhook

@kkoziarski
Copy link
Owner

I updated tsconfig.app.json using workaround suggested in sureshchahal/angular2-adal#23 (comment)

@kkoziarski kkoziarski reopened this Nov 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants