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

export 'ɵɵdefineInjectable' was not found in '@angular/core' #158

Closed
gazinfine opened this issue Jun 14, 2019 · 14 comments
Closed

export 'ɵɵdefineInjectable' was not found in '@angular/core' #158

gazinfine opened this issue Jun 14, 2019 · 14 comments

Comments

@gazinfine
Copy link

Had no issues with time picker on our angular 6 appliction until this week. Now are seeing build issues

WARNING in ./node_modules/ngx-material-timepicker/fesm5/ngx-material-timepicker.js 231:51-69
"export 'ɵɵdefineInjectable' was not found in '@angular/core'

also saw errors related to Angular 7 being a pre-requisite for this plugin.

Is angular 6 no longer supported?

@KrzysztofKarol
Copy link

Same on 7.2.13

@RaphaelMalth
Copy link

Same error here.

@thisiszoaib
Copy link

Same here with Angular 7. Just stopped working after the latest updates for Angular 8. I tried switching to previous versions but this seems to have affected them as well.

@jgonzalez4gcp
Copy link

Same here with Angulart 7. Rollback to version 3.0.3 and seems to work fine

@gazinfine
Copy link
Author

i rolled back to 2.9 and made relevant change in app.module and it is working now. Would be good to get a fix in the next version so can ensure on the latest. thanks.

@BryanFrancotte
Copy link

Is there a work around that doesn't involve rolling back the version of angular ?
Because I'm using other component that are not supported anymore on old version of angular...
Thanks for the answer ;)

@KrzysztofKarol
Copy link

@BryanFrancotte You don't have to downgrade angular. Just downgrade ngx-material-timepicker to 3.2.2

@BryanFrancotte
Copy link

@LintYourLife okay thank you for the work around ;)

@Agranom
Copy link
Owner

Agranom commented Jun 18, 2019

Your app doesn't work with that warning? Because this issue relates to angular angular/angular#30413

@marthaya-putra
Copy link

I have the same issue running on Angular 7.2.13. Tried rolling back to 3.2.2 and 3.0.3 but still didnt solve the problem

@Agranom
Copy link
Owner

Agranom commented Jun 21, 2019

This is caused, because library were built with angular 8. I guess, I will downgrade it to 7 and rebuild package. This should fix that warning

@marthaya-putra
Copy link

marthaya-putra commented Jun 21, 2019

This is caused, because library were built with angular 8. I guess, I will downgrade it to 7 and rebuild package. This should fix that warning

Update: I was able to work around it with @angular-devkit/build-angular version 0.6.5. For me it was only happening for --prod build with Angular 7. It's fine after downgrading the devkit

@Agranom Agranom changed the title compatibility issue with angular 6 export 'ɵɵdefineInjectable' was not found in '@angular/core' Jun 21, 2019
Agranom added a commit that referenced this issue Jun 21, 2019
* issue158: * downgrade angular to v7

* issue160: + handlers for null and empty string

* issue160: * update changelog
@Agranom
Copy link
Owner

Agranom commented Jun 21, 2019

Guys, I've recompiled lib with v7 and warning is gone. So v3.3.1 is fixed version for you. The next one v4.0.0 is for angular 8

@Judejvlr
Copy link

Guys, I've recompiled lib with v7 and warning is gone. So v3.3.1 is fixed version for you. The next one v4.0.0 is for angular 8

ThxU!

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

9 participants