Closed
Description
The bug
I am getting a window is not defined error while using it on nextjs.
To Reproduce
Codesandbox demo form the docs in nextjs with apollo
Expected behavior
Run with no error.
Screenshots
window is not defined
ReferenceError: window is not defined
at r (/home/afifia/Documents/Project/neutron/node_modules/react-spaces/dist/index.js:1:1903)
at s (/home/afifia/Documents/Project/neutron/node_modules/react-spaces/dist/index.js:1:1991)
at e.exports (/home/afifia/Documents/Project/neutron/node_modules/react-spaces/dist/index.js:1:5562)
at Object.<anonymous> (/home/afifia/Documents/Project/neutron/node_modules/react-spaces/dist/index.js:1:11119)
at n (/home/afifia/Documents/Project/neutron/node_modules/react-spaces/dist/index.js:1:124)
at Module.<anonymous> (/home/afifia/Documents/Project/neutron/node_modules/react-spaces/dist/index.js:1:20622)
at n (/home/afifia/Documents/Project/neutron/node_modules/react-spaces/dist/index.js:1:124)
at /home/afifia/Documents/Project/neutron/node_modules/react-spaces/dist/index.js:1:923
at Object.<anonymous> (/home/afifia/Documents/Project/neutron/node_modules/react-spaces/dist/index.js:1:933)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:690:17)
at require (internal/modules/cjs/helpers.js:25:18)
Desktop (please complete the following information):
- OS: Linux Mint
- Browser Chrome
- Version 75