Open akgawas opened 4 years ago
I got this error in angular 8 too. ERROR in node_modules/ngx-owl-carousel-o/lib/carousel/carousel.component.d.ts(29,9): error TS1086: An accessor cannot be declared in an ambient context.
Any solution for this?
also in angular 9, rubbish. moving on
I got this error in angular 8 too. ERROR in node_modules/ngx-owl-carousel-o/lib/carousel/carousel.component.d.ts(29,9): error TS1086: An accessor cannot be declared in an ambient context.
Any solution for this?
Guys I have solved it installing the right version for the Angular version we are using. My problem was that I was installing the version 3.0.0
for Angular 8 but the right one is the 2.x.x
. So, I have installed the latest version (2.1.0
) for Angular 8.
I didn't pay attention the version requirements into the README file. This was my case.
ngx-owl-carousel-o | Angular |
---|---|
3.x.x | 9.x.x |
2.x.x (latest 2.1.0 ) |
8.x.x |
1.x.x (latest 1.2.0 ) |
7.x.x |
0.x.x (latest 0.1.2 ) |
6.x.x |
I got this error in angular 8 too. ERROR in node_modules/ngx-owl-carousel-o/lib/carousel/carousel.component.d.ts(29,9): error TS1086: An accessor cannot be declared in an ambient context. Any solution for this?
Guys I have solved it installing the right version for the Angular version we are using. My problem was that I was installing the version
3.0.0
for Angular 8 but the right one is the2.x.x
. So, I have installed the latest version (2.1.0
) for Angular 8.I didn't pay attention the version requirements into the README file. This was my case.
ngx-owl-carousel-o Angular 3.x.x 9.x.x 2.x.x (latest
2.1.0
) 8.x.x 1.x.x (latest1.2.0
) 7.x.x 0.x.x (latest0.1.2
) 6.x.x
this solved my issue, just set the correct version for your current angular version
node_modules/ngx-owl-carousel-o/lib/services/window-ref.service.d.ts(20,9): error TS1086: An accessor cannot be declared in an ambient context.