Skip to content

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

Closed
ghost opened this issue May 22, 2018 · 5 comments
Closed

Issue with latest release. #20

ghost opened this issue May 22, 2018 · 5 comments

Comments

@ghost
Copy link

ghost commented May 22, 2018

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

@sollenne
Copy link
Owner

may be a mismatch of angular versions. you have a stackblitz or repo we can look at?

@ghost
Copy link
Author

ghost commented May 22, 2018

It actually works fine on Angular 5. I receive this error when building using 'ng build --prod'
my pipeline started breaking with the error shown before.

@sollenne
Copy link
Owner

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.

@ghost
Copy link
Author

ghost commented May 22, 2018

No need to upgrade to Angular 6. For people having the same issue you can just add in yout tsconfig.json:

"compilerOptions": {
  ...
  "paths": { "@angular/*": ["../node_modules/@angular/*"] }
}

@ghost ghost closed this as completed May 22, 2018
@sollenne
Copy link
Owner

I remember this from a few months ago #3 (comment)

This issue was closed.
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

1 participant