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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Function calls are not supported in decorators but '傻makeDecorator' was called in 'Injectable' #32694
Comments
For my project I found the solution: In my project in angular 6 I had:
When I migrated to angular 8 I had the error:
To get rid of this error I had to write the prior code like:
|
Hello @ovione, Unfortunately we won't be able to investigate this issue without a minimal reproduction, including the code (preferably a link to a Github repo) which causes the issue. Thanks, |
I am also facing same issue. anybody got the solutions for it?. |
Same here like @nmanthena18 after upgrading from angular 7 to 8... |
Hi please I ma getting the same issue after migrating from angular 6 to 8: |
Angular 7 for 8 > ng.cmd run app:build:production
ERROR in Error during template compile of 'NgModule'
Function calls are not supported in decorators but '傻makeDecorator' was called.
Error during template compile of 'Directive'
Function calls are not supported in decorators but '傻makeDecorator' was called.
Error during template compile of 'Directive'
Function calls are not supported in decorators but '傻makeDecorator' was called.
Error during template compile of 'Injectable'
Function calls are not supported in decorators but '傻makeDecorator' was called.
Error during template compile of 'Injectable'
Function calls are not supported in decorators but '傻makeDecorator' was called.
Error during template compile of 'Injectable'
Error during template compile of 'Injectable'
Function calls are not supported in decorators but '傻makeDecorator' was called.
Error during template compile of 'Injectable'
Function calls are not supported in decorators but '傻makeDecorator' was called.
Error during template compile of 'Injectable'
Function calls are not supported in decorators but '傻makeDecorator' was called.
Error during template compile of 'Injectable'
Function calls are not supported in decorators but '傻makeDecorator' was called.
Error during template compile of 'NgModule'
Function calls are not supported in decorators but '傻makeDecorator' was called.
Error during template compile of 'Injectable'
Function calls are not supported in decorators but '傻makeDecorator' was called.
[ERROR] An error occurred while running subprocess ng.
ng.cmd run app:build:production exited with exit code 1. |
receiving the above set of errors on upgrading the project from Angular 5 to Angular 8 for Prod build @alxhub / @AndrewKushnir , Any update on this issue? |
Same issue I am facing , Any help will definitely appreciated |
Any update regarding this issue? |
Adding this to tsconfig.json worked for me Look at #9576 issue too |
this worked for me |
this worked for me too; but why? |
did you found any solution? |
To : @davidemess This worked for me too. I am still wondering how/why it worked ? Thanks, |
I think it works because compiler are resolving every angular dependency with node_modules root folder dependency. |
Yeah, I've seen this happen when there are multiple versions of Angular in |
This is no longer an issue with Ivy, so closing as resolved. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
馃悶 bug report
Is this a regression?
Yes, the previous version in which this bug was not present was: 6
I upraded my project to version 8
Description
I build for production and I got the error.
Globally I have @angular/cli@7.3.5 but locally I have angular/cli": "8.3.3",
I guess the local angular cli is used.
My project uses libraries that I build with angular 6.1.0
馃敩 Minimal Reproduction
ng build --prod
馃敟 Exception or Error
馃實 Your Environment
Angular Version:
Anything else relevant?
this is my package.json
The text was updated successfully, but these errors were encountered: