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
Hi all ,
while I am using the UI Library : antd , I've got an error like this:
ReferenceError: window is not defined
at Object.<anonymous> (/Applications/MAMP/htdocs/react/react-static-boilerplate/node_modules/antd/node_modules/velocity-animate/velocity.js:403:4)
at Module._compile (module.js:425:26)
at Module._extensions..js (module.js:432:10)
at Object.require.extensions.(anonymous function) [as .js] (/Applications/MAMP/htdocs/react/react-static-boilerplate/node_modules/babel-core/lib/api/register/node.js:214:7)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (/Applications/MAMP/htdocs/react/react-static-boilerplate/node_modules/antd/node_modules/rc-queue-anim/lib/QueueAnim.js:23:24)
at Module._compile (module.js:425:26)
I think it is because we rendered the elements on server and there is no window object without a window.
Am I right ? How could I fix it ?
Please help me .
Thanks
The text was updated successfully, but these errors were encountered:
Hi all ,
while I am using the UI Library : antd , I've got an error like this:
I think it is because we rendered the elements on server and there is no window object without a window.
Am I right ? How could I fix it ?
Please help me .
Thanks
The text was updated successfully, but these errors were encountered: