codechavez / angular-inline-editor

angular-inline-editor is a small Angular library that allows the experience to use editable elements (click-to-edit) without the pain and/or hassle.
https://www.npmjs.com/package/angular-inline-editors
MIT License
9 stars 11 forks source link

Function calls are not supported in decorators but 'InputEditorModule' was called. #3

Closed ysiddiqui closed 6 years ago

ysiddiqui commented 6 years ago

Integrated in my project and it is working like a charm but when I'm generating build for production using ng build --prod it is showing me following error,

"ERROR in Error during template compile of 'AppModule'
  Function calls are not supported in decorators but 'InputEditorModule' was called."

I tried every possible way I know and search on stackoverflow, but unfortunately no success.

ProgzillaRadio commented 6 years ago

Am having exactly the same issue.

Kozyrov commented 6 years ago

Another instance to bring this up to date. A development build in this case:

ERROR in Error during template compile of 'AppModule' Function calls are not supported in decorators but 'InputEditorModule' was called.

node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.

node_modules/angular-inline- editors/node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.