ng2-image-gallery icon indicating copy to clipboard operation
ng2-image-gallery copied to clipboard

@angular/material/material"' has no exported member 'TemplatePortal'.

Open lutsifer opened this issue 7 years ago • 3 comments

Hello,

I used your package and everything was perfect until I had to move the project to other dev machine... I got pretty nasty error no matter what I try it persist:


ERROR in long_path.../node_modules/ng2-image-gallery/dist/src/ng2-image-gallery-displacer.component.d.ts (2,10): Module '"long_path.../node_modules/@angular/material/material"' has no exported member 'TemplatePortal'.
long_path.../node_modules/ng2-image-gallery/dist/src/ng2-image-gallery-displacer.component.d.ts (2,26): Module '"long_path.../@angular/material/material"' has no exported member 'Overlay'.

ERROR in PortalModule is not an NgModule

Please help, I am pretty despaired already :) I don't remember how I made it work the first time (I remember there was some problems but maybe not exactly like this..)

So I stuck with working dev version only if I reproduce node and npm versions and using ziped directory... not solution at all..

lutsifer avatar Jan 04 '18 18:01 lutsifer

Any help will save my life, thank you!

lutsifer avatar Jan 04 '18 19:01 lutsifer

Hey @lutsifer,

unfortunately the dependency on angular/material creates nothing but trouble... see #9 I tried to fix the dependency on it to the version that was used when releasing the last version of this module. Can you try if it works with ng2-img-gallery at version 0.3.19 ?

bergben avatar Jan 04 '18 21:01 bergben

It looks a bit worse then before?

ERROR in long_path_here.../ng2-castifyme/node_modules/ng2-image-gallery/node_modules/@angular/material/core/typings/bidi/index.d.ts (8,26): Module '"long_path_here.../ng2-castifyme/node_modules/@angular/cdk/bidi"' has no exported member 'DIRECTIONALITY_PROVIDER'.

ERROR in long_path_here.../ng2-castifyme/node_modules/ng2-image-gallery/node_modules/@angular/material/core/typings/rxjs/rx-chain.d.ts (8,25): Cannot find module '@angular/cdk/rxjs'.

ERROR in long_path_here.../ng2-castifyme/node_modules/ng2-image-gallery/node_modules/@angular/material/core/typings/rxjs/rx-operators.d.ts (8,574): Cannot find module '@angular/cdk/rxjs'.

ERROR in long_path_here.../ng2-castifyme/node_modules/ng2-image-gallery/node_modules/@angular/material/table/typings/row.d.ts (20,39): Generic type 'CdkRowDef<T>' requires 1 type argument(s).
long_path_here.../ng2-castifyme/node_modules/ng2-image-gallery/node_modules/@angular/material/table/typings/row.d.ts (23,40): Generic type 'CdkRowDef<T>' requires 1 type argument(s).

ERROR in Metadata version mismatch for module long_path_here.../ng2-castifyme/node_modules/@angular/cdk/overlay/typings/index.d.ts, found version 4, expected 3, resolving symbol Ng2ImageGalleryModule in long_path_here.../ng2-castifyme/node_modules/ng2-image-gallery/dist/src/ng2-image-gallery.module.d.ts, resolving symbol Ng2ImageGalleryModule in long_path_here.../ng2-castifyme/node_modules/ng2-image-gallery/dist/src/ng2-image-gallery.module.d.ts

lutsifer avatar Jan 04 '18 22:01 lutsifer