vdanyliv / ngx-tiny-slider

Angular wrapper for tiny-slider
https://npmjs.com/package/ngx-tiny-slider
MIT License
15 stars 18 forks source link

Slider is failing to initialize in Angular 9 #16

Closed JohKC closed 4 years ago

JohKC commented 4 years ago

I've been trying to make Tiny Slider work in an Angular 9 project, but the browser gives me this error:

core.js:5845 ERROR TypeError: Cannot read property 'nativeElement' of undefined
    at NgxTinySliderService.initSlider (ngx-tiny-slider.js:26)
    at NgxTinySliderComponent.initSlider (ngx-tiny-slider.js:113)
    at NgxTinySliderComponent.ngOnInit (ngx-tiny-slider.js:78)
    at callHook (core.js:3909)
    at callHooks (core.js:3873)
    at executeInitAndCheckHooks (core.js:3814)
    at refreshView (core.js:11723)
    at refreshComponent (core.js:13145)
    at refreshChildComponents (core.js:11436)
    at refreshView (core.js:11757)

I did everything according to the Usage Example, but it just doesn't work (it works in Angular 8, though).

ChrisLang commented 4 years ago

sigh!

vdanyliv commented 4 years ago

Hi @JohKC @ChrisLang, thanks for raising the issue, at this moment I'm pretty busy and don't have much time to support the project. I plan to release a new version that supports Angular 8 at the end of this week.

glani commented 4 years ago

Any news ? Faced the same issue.

vdanyliv commented 4 years ago

@glani @ChrisLang @JohKC please upgrade your module to the latest version