-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't work with Angular 9 #108
Comments
Can confirm. It is not working from a fresh angular 9 project |
I had the same issue (Cannot read property 'nativeElement' of undefined, this.container being null). You can update to the beta version to fix it: |
When I used the beta version, the error is no longer there, but I don't see anything on the page. When I inspect it, the slideshow element is there but nothing to see visually |
Same happens to me! |
I am currently using the beta in production, and it's working for me at least (example: https://simply-how.com/getting-started-with-java-11, right panel of the |
Same issue is happening with me i tried to fix it but it didn't go well . |
npm install [email protected] just type this on your terminal .beta version is working for me |
[imageUrls]="imageSources"
[height]="height"
[minHeight]="minHeight"
[arrowSize]="arrowSize"
[showArrows]="showArrows"
[disableSwiping]="disableSwiping"
[autoPlay]="autoPlay"
[stopAutoPlayOnSlide]="stopAutoPlayOnSlide"
[debug]="debug"
[backgroundSize]="backgroundSize"
[backgroundPosition]="backgroundPosition"
[backgroundRepeat]="backgroundRepeat"
[showDots]="showDots"
[dotColor]="dotColor"
[showCaptions]="showCaptions"
[captionColor]="captionColor"
[captionBackground]="captionBackground"
[lazyLoad]="lazyLoad"
[hideOnNoSlides]="hideOnNoSlides"
[fullscreen]="fullscreen">
ts code : imageSources: (string | IImage)[] = [ dont forget to install and import the necessary packages |
Would love to see your code along with package.json I did try to add the beta version and there was no luck. |
I have also removed all the |
I tried this with a brand new project. Don't have any entryComponents on mine. |
package.json:
app.module.ts & 1 another lazy loaded module where it's being used:
page.component.ts:
slideshow.component.html:
|
updating the package to [email protected], worked for me |
I have the latest Angular version and still doesn't work for me. I install the beta version and I don't see any error, but I just don't see the slider. And if I inspect my page I see it in the code with all its elements. |
Fix it, in my case, was that I didn't have When I changed it, it worked! |
Fixed it. For my removing the «position=relative» on slideshow-container resolved the problem |
Hello everyone!
After updating Angular version from 8 to 9 this component started to give me an error in runtime (it compiles correctly).
The error occurs in "ng-simple-slideshow.js" :
setStyles() {
...
this._renderer.removeStyle(this.container.nativeElement, 'background-color');
}
The error is that "this.container" is null
Some help regarding this issue would be more than welcome!
Thank you!!
The text was updated successfully, but these errors were encountered: