-
Notifications
You must be signed in to change notification settings - Fork 129
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
Gallery show error with universal #262
Comments
When would it be available ? Thanks |
Sure! hopefully tomorrow |
@andy200486 Available in v4.0.2-beta.0 |
Thanks, it works good! But I got an other error now with this version : |
Hey Andy & Murhaf! Is there a solution for the "Image is not defined" error with SSR? |
+1 Facing the same error, fix appreciated. Using latest version 4.0.2-beta.0 |
I think I found the reason for this issue. As Angular Universal does not provide an actual DOM, you are not allowed to directly access the DOM for example via
Looking at the corresponding source code, I can see that a new instance of the class
As documented in the MDN spec, @MurhafSousli I don't have time to fix and test this fix properly, but this hopefully helps you to fix it :) Their might be other direct usages of DOM objects, keep this in mind when fixing this issue. |
Up! |
Hello, |
@bastienlemaitre Why haven't you test it out with Universal before sending me the PR? |
All my excuses, it works. On the other hand the server-side autoplay seems to pose a problem, it is he who makes the script crash because of the promise |
Hey, any updates on this bug? As I see last fix was solved one problem and provided new one. For now I can see only one workaround its just skip autoPlay feature on server-side: |
What is the expected behavior?
What is the current behavior?
ERROR ReferenceError: requestAnimationFrame is not defined at AnimationFrameAction.requestAsyncId
The problem seems to be at this line
rxjs.animationFrameScheduler.schedule(function () { return _this._slidingWorker$.next(newState); });
What are the steps to reproduce?
What is the use-case or motivation for changing an existing behavior?
Which versions are you using for the following packages?
Angular:7.1.4
Angular CDK:7.2.1
Angular CLI:7.1.4
Typescript:3.1.6
Gallery: 4.0.1
I'm facing issues with your module when I use server side rendering.
Could you help me ?
Thanks
The text was updated successfully, but these errors were encountered: