-
Notifications
You must be signed in to change notification settings - Fork 18
Issue with latest release. #20
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
Comments
may be a mismatch of angular versions. you have a stackblitz or repo we can look at? |
It actually works fine on Angular 5. I receive this error when building using 'ng build --prod' |
Looks like angular is creating a var that the package is already declaring. angular/angular#21670 if you can update to angular 6, then try using the latest version of this lib, it may work. |
No need to upgrade to Angular 6. For people having the same issue you can just add in yout tsconfig.json:
|
I remember this from a few months ago #3 (comment) |
I was working with the version 2.0.8. And after the new release I started receiving the following error:
ERROR in ../angular-fittext/angular-fittext.ts(5,2): Error during template compile of 'AngularFittextModule'
Function calls are not supported in decorators but 'ɵmakeDecorator' was called in 'NgModule'
'NgModule' calls 'ɵmakeDecorator'.
node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.
node_modules/angular-fittext/node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.
ERROR: Job failed: exit status 1
The text was updated successfully, but these errors were encountered: