-
-
Notifications
You must be signed in to change notification settings - Fork 417
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
Feature: ability to use panzoom with SSR #499
Comments
Thanks for opening an issue. It makes sense to be able to load it without having to dynamically load it so I'll add the window checks, but you should still only initialize Panzoom on the front-end, such as in a |
By the way, this is how you would include something like panzoom in next.js: https://nextjs.org/docs/advanced-features/dynamic-import#with-no-ssr But this shouldn't be necessary once I finish the patch. |
Thanks for the answer! I see that you've just applied the fix for this issue. Have you deployed it to npm? |
## [4.3.1](4.3.0...4.3.1) (2020-07-21) ### Bug Fixes * check for window and document to allow ssr loading ([3a0119e](3a0119e)), closes [#499](#499)
🎉 This issue has been resolved in version 4.3.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [4.3.1](4.3.0...4.3.1) (2020-07-21) ### Bug Fixes * check for window and document to allow ssr loading ([3a0119e](3a0119e)), closes [#499](#499)
What problem does this feature solve?
This feature solves crashes of next.js (or any other SSR app) on dev & build modes
Describe the solution you'd like
Try to check typeof of
window
or use exenv's canUseDom utilityAdditional context
Here comes the log output of
npm run dev
inside next.js applog.txt
The text was updated successfully, but these errors were encountered: