ivylaboratory / angular-carousel

A simple solution for horizontal scrolling images with lazy loading
Apache License 2.0
150 stars 92 forks source link

carousel not showing the data #31

Open flying041022 opened 4 years ago

flying041022 commented 4 years ago

I have a problem which is I using Carousel and images to create a function. the function is when I change the data, the image also would be changed. but when I changed the data, the Carousel it would be white block at first. that I need to open chrome developer, the image that will be showed. and I've try many version, it's all the same result. my project angular cli : 8.0.2 angular-responsive-carousel: 1.5.11 could you help me fix the issue? many thanks

the compiler would also show those issue ERROR in node_modules/angular-responsive-carousel/lib/carousel.component.d.ts(6,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/angular-responsive-carousel/lib/carousel.component.d.ts(7,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/angular-responsive-carousel/lib/carousel.component.d.ts(8,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/angular-responsive-carousel/lib/carousel.component.d.ts(9,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/angular-responsive-carousel/lib/carousel.component.d.ts(26,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/angular-responsive-carousel/lib/carousel.component.d.ts(27,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/angular-responsive-carousel/lib/carousel.component.d.ts(28,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/angular-responsive-carousel/lib/carousel.component.d.ts(29,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/angular-responsive-carousel/lib/carousel.component.d.ts(30,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/angular-responsive-carousel/lib/carousel.component.d.ts(31,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/angular-responsive-carousel/lib/carousel.component.d.ts(52,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/angular-responsive-carousel/lib/carousel.component.d.ts(53,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/angular-responsive-carousel/lib/carousel.component.d.ts(54,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/angular-responsive-carousel/lib/carousel.component.d.ts(55,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/angular-responsive-carousel/lib/carousel.component.d.ts(59,9): error TS1086: An accessor cannot be declared in an ambient context.

sovamir commented 3 years ago

have you fixed this issue?

TolgaYigit commented 3 years ago

Getting the same error with

Arashatami commented 3 years ago

Getting the same error with

"@angular/cli": "8.3.26" "angular-responsive-carousel": "2.0.1"

Arashatami commented 3 years ago

@drozhzhin-n-e

Rosscotini commented 3 years ago

Same issue here

"@angular/cli": "7.3.0", "angular-responsive-carousel": "^2.0.2",

Rosscotini commented 3 years ago

This might resolve the issue for some: https://stackoverflow.com/a/62760729/2485467

Adding skipLibCheck: true in compilerOptions inside tsconfig.json file fixed my issue.

"compilerOptions": { "skipLibCheck": true, },