bruckwubete / ngx-carousel-3d

Ngx Carousel
7 stars 9 forks source link

Cannot redeclare block-scoped variable 'ngDevMode' #1

Open sysmat opened 6 years ago

sysmat commented 6 years ago

I'm using angular:5.2.9 and import NgxCarousel3dModule, but I get:

ERROR in node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.
node_modules/ngx-carousel-3d/node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.

Is this package only for angular:6.0.0?

Regards, Tomaž

abdatta commented 6 years ago

+1

abdatta commented 6 years ago

Downgrading to angular 5.1.3 solves the issue. (but creates the next issue #2 )

justin-sleep commented 5 years ago

I was able to work around this by deleting the library's node_modules folder (node_modules/ngx-carousel-3d/node_modules) after npm install. Something in the configuration is pulling @angular/core into the library's installed modules.

drwharris commented 5 years ago

I was able to work around this by deleting the library's node_modules folder

Thank you. This fixed the issue (and others) for me