Closed spimou closed 5 years ago
I guess you need to upgrade to Angular 7, try ng update @angular/cli
then ng update @angular/core
@MurhafSousli Thanks for the tip. The project is already big and I am afraid that if I upgrade, maybe something will break. Is there any other way to fix this? Thanks
Unfortunately, I cannot do anything about it because your issue is caused by a conflict between angular packages versions,
@MurhafSousli Ok. Thanks. I will upgrade my Angular.
@MurhafSousli This started happening again since I upgrade my project to Angular v8.0.0-beta.5
Same error:
ERROR in node_modules/@ngx-gallery/lightbox/lib/lightbox.animation.d.ts(1,48): error TS2307: Cannot find module '@angular/animations/src/animation_metadata'.
@eliashdezr I think you should wait until @angular/cdk
gets version 8
@MurhafSousli according to the Angular team, maybe deep imports should not be allowed: https://github.com/angular/angular/issues/29020
@MurhafSousli version 8 was officially released, can we get a fix for this?
Thank you!
@eyalhakim @MurhafSousli
I'm using angular v8 and ngx-gallery 4.0.1 cause images load only one time on 4.0.3.
Same error: ERROR in node_modules/@ngx-gallery/lightbox/lib/lightbox.animation.d.ts(1,48): error TS2307: Cannot find module '@angular/animations/src/animation_metadata'.
Fixed with a little change in node_modules/@ngx-gallery/lightbox/lib/lightbox.animation.d.ts
I changed file path to : export declare const lightboxAnimation: import("@angular/animations").AnimationTriggerMetadata;
It worked for me with a correct build.
What is the expected behavior?
Work without any errors or warnings at all
What is the current behavior?
Getting
when I do
ng serve
in my console.What are the steps to reproduce?
I would like to use gallery with gallerize like so
<gallery gallerize [items]="cameraImages"></gallery>
I start bynpm install
everything like$ npm i -S @ngx-gallery/core @ngx-gallery/lightbox @ngx-gallery/gallerize @angular/cdk @angular/animations hammerjs
.Then I get
Then I do
ng serve
and I get this in my console92% after chunk asset optimization SourceMapDevToolPlugin vendor.js generate SourceMap ERROR in node_modules/@ngx-gallery/lightbox/lib/lightbox.animation.d.ts(1,47): error TS1005: ',' expected.
But Angular ends up compiled successfully, the app works and the photogallery works.
Also in the Chrome console I get
So I do
in my
app.module.ts
believing that this will fix theERROR in node_modules
and theERROR Error: Found the synthetic property @fadeIn.
Then I do
ng serve
but I getWhat is the use-case or motivation for changing an existing behavior?
Please help me understand how to fix this, so I can use the gallery
Which versions are you using for the following packages?
Angular: 6.0.6 Angular CDK:
npm @angular/cdk -v
says 6.1.0 -ng version
says 7.1.1 Angular CLI: 6.0.8 Typescript: 2.7.2 Gallery: 4.0.1Is there anything else we should know?
Also, feel free to ask any other detail. Thanks