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 in production build #32134

Closed
christophstockinger opened this issue Aug 14, 2019 · 5 comments
Closed

Error in production build #32134

christophstockinger opened this issue Aug 14, 2019 · 5 comments
Labels
area: compiler Issues related to `ngc`, Angular's template compiler freq1: low needs reproduction This issue needs a reproduction in order for the team to investigate further type: bug/fix
Milestone

Comments

@christophstockinger
Copy link

I run the build command in production mode (ng build --prod) and get the following error.

ERROR in Error during template compile of 'ɵe'
  Function calls are not supported in decorators but 'ɵmakeDecorator' was called in 'Injectable'
    'Injectable' calls 'ɵmakeDecorator'.

Any solution?

My Package.json-Dependencies:

{
"dependencies": {
    "@angular-redux/store": "^10.0.0",
    "@angular/animations": "~8.2.2",
    "@angular/cdk": "^8.1.2",
    "@angular/common": "~8.2.2",
    "@angular/compiler": "~8.2.2",
    "@angular/core": "~8.2.2",
    "@angular/forms": "~8.2.2",
    "@angular/material": "^8.1.2",
    "@angular/platform-browser": "~8.2.2",
    "@angular/platform-browser-dynamic": "~8.2.2",
    "@angular/router": "~8.2.2",
    "@microsoft/applicationinsights-web": "^2.0.0",
    "@ngrx/router-store": "8.2.0",
    "@ngrx/store": "8.2.0",
    "@ngrx/store-devtools": "8.2.0",
    "@ngx-translate/core": "^11.0.1",
    "@ngx-translate/http-loader": "^4.0.0",
    "core-js": "^3.2.1",
    "hammerjs": "^2.0.8",
    "jsrsasign": "^8.0.12",
    "lodash": "^4.17.15",
    "lory.js": "^2.5.3",
    "moment": "^2.24.0",
    "ngx-file-drop": "^8.0.7",
    "ngx-mat-daterange-picker": "^1.1.4",
    "objectFitPolyfill": "^2.3.0",
    "redux": "4.0.1",
    "redux-seamless-immutable": "0.4.0",
    "rxjs": "^6.4.0",
    "rxjs-compat": "6.3.3",
    "tslib": "^1.10.0",
    "universal-cookie": "^4.0.2",
    "zone.js": "~0.10.1"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.802.1",
    "@angular/cli": "~8.2.1",
    "@angular/compiler-cli": "~8.2.2",
    "@angular/language-service": "~8.2.2",
    "@types/node": "~12.7.1",
    "@types/jasmine": "~3.4.0",
    "@types/jasminewd2": "~2.0.6",
    "codelyzer": "~5.1.0",
    "jasmine-core": "~3.4.0",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~4.2.0",
    "karma-chrome-launcher": "~3.0.0",
    "karma-coverage-istanbul-reporter": "~2.1.0",
    "karma-jasmine": "~2.0.1",
    "karma-jasmine-html-reporter": "^1.4.2",
    "protractor": "~5.4.2",
    "redux-devtools-extension": "^2.13.8",
    "ts-node": "~8.3.0",
    "tslint": "~5.18.0",
    "typescript": "~3.5.3"
  }
}
@AndrewKushnir AndrewKushnir added the area: compiler Issues related to `ngc`, Angular's template compiler label Aug 14, 2019
@ngbot ngbot bot added this to the needsTriage milestone Aug 14, 2019
@alxhub
Copy link
Member

alxhub commented Aug 15, 2019

@christophstockinger,

Looking at the previous issue you made about this (angular/angular-cli#10866) I see they asked for a reproduction to demonstrate the problem. We'll also require that, otherwise there is no way for us to assist with this problem.

@alxhub alxhub added freq1: low severity3: broken needs reproduction This issue needs a reproduction in order for the team to investigate further type: bug/fix labels Aug 15, 2019
@ngbot ngbot bot modified the milestones: needsTriage, Backlog Aug 15, 2019
@christophstockinger
Copy link
Author

How do you reproduce that? I have updated Angular from 7 to 8 and since then this error occurs too. I must have defined the error message somewhere and can determine in which case it will be output. So you could narrow down the circle of the error and I can help to find the exact cause.

I only wanted to point out with the link that it might be a CLI error.

@alxhub
Copy link
Member

alxhub commented Aug 20, 2019

I think this is a case of #23609. It seems like the workaround is to specify fullTemplateTypeCheck: true in your Angular compiler options in tsconfig.

@alxhub
Copy link
Member

alxhub commented Sep 5, 2019

Closing as no workable reproduction has been provided, and a workaround potentially exists.

@alxhub alxhub closed this as completed Sep 5, 2019
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: compiler Issues related to `ngc`, Angular's template compiler freq1: low needs reproduction This issue needs a reproduction in order for the team to investigate further type: bug/fix
Projects
None yet
Development

No branches or pull requests

3 participants