-
Notifications
You must be signed in to change notification settings - Fork 71
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
angular 6 update issue #107
Comments
I just upgraded an old Angular 4.x project to Angular 6.x and ran into the same problem. This project looks like it has been abandoned. There hasn't been a commit since Jan 24th, 2017. I got it to run by patching the node_modules/datepicker.component.ts file and changing the animation references to @angular/animations.
I then created a patch file and apply the patch postinstall |
@humblepie actuall I have already solved the issue updating jquery and adding @types/jquery of the same version` this is my package.json |
It's a mystery to me how updating @types/jquery and jquery would have any bearing on the fact that this module is incompatible with Angular 6. The issue with angular2-material-datepicker is it imports animate from @angular/core instead of the new location @angular/animations. Also, there is no version 3.3.5 of jquery so npm install reports: No matching version found for jquery@^3.3.5. jquery 3.3.1 is the latest. But I tried this suggestion anyway with the latest versions of both and unsurprisingly I got the same error: /node_modules/@angular/core/core"' has no exported member 'animate'. It would be lovely if this project got updated. |
hi, after updating angular 6 I received current compile error`
ERROR in node_modules/angular2-material-datepicker/src/datepicker.component.ts(2,3): error TS2305: Module '"C:/xampp/htdocs/cyance/nexus/nexus-migrating/node_modules/@angular/core/core"' has no exported member 'animate'.
node_modules/angular2-material-datepicker/src/datepicker.component.ts(2,56): error TS2305: Module '"C:/xampp/htdocs/cyance/nexus/nexus-migrating/node_modules/@angular/core/core"' has no exported member 'keyframes'.
node_modules/angular2-material-datepicker/src/datepicker.component.ts(3,43): error TS2305: Module '"C:/xampp/htdocs/cyance/nexus/nexus-migrating/node_modules/@angular/core/core"' has no exported member 'state'.
node_modules/angular2-material-datepicker/src/datepicker.component.ts(3,50): error TS2305: Module '"C:/xampp/htdocs/cyance/nexus/nexus-migrating/node_modules/@angular/core/core"' has no exported member 'style'.
node_modules/angular2-material-datepicker/src/datepicker.component.ts(3,57): error TS2724: Module '"C:/xampp/htdocs/cyance/nexus/nexus-migrating/node_modules/@angular/core/core"' has no exported member 'transition'. Did you mean 'TRANSLATIONS'?
node_modules/angular2-material-datepicker/src/datepicker.component.ts(3,69): error TS2305: Module '"C:/xampp/htdocs/cyance/nexus/nexus-migrating/node_modules/@angular/core/core"' has no exported member 'trigger'.
seems this is related to separating some modules from @angular/core
any hints how could this be solved?
Thanks in advance
The text was updated successfully, but these errors were encountered: