You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WebpackError: ReferenceError: window is not defined
As we only render the component on client side, it's not necessary that we actually render on the serverside, only that the module itself doesn't crash compilation.
We can probably work around by using a conditional import on the panellum-react module, but ideally the window.libpannellum assignment would be wrapped in an if (typeof window !== 'undefined')
The text was updated successfully, but these errors were encountered:
When embedding this component into gatsby, we have an error on window definition.
https://github.com/farminf/pannellum-react/blob/master/src/pannellum/js/libpannellum.js#L24
This triggers the below
As we only render the component on client side, it's not necessary that we actually render on the serverside, only that the module itself doesn't crash compilation.
We can probably work around by using a conditional import on the panellum-react module, but ideally the
window.libpannellum
assignment would be wrapped in anif (typeof window !== 'undefined')
The text was updated successfully, but these errors were encountered: