vitalii-andriiovskyi / ngx-owl-carousel-o

owl-carousel for Angular >=6
MIT License
178 stars 51 forks source link

It gives error in angular 7 #76

Open akgawas opened 4 years ago

akgawas commented 4 years ago

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.

stevensdotb commented 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?

ChrisLang commented 4 years ago

also in angular 9, rubbish. moving on

stevensdotb commented 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?

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
zamuset commented 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?

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

this solved my issue, just set the correct version for your current angular version