Hi, I’m newbie in ReactJs and am trying to create an isomorphic application (server side rendering)
I want to add the JqxGauge widget but when compiling I get the error
var JQXLite = window.JQXLite;
ReferenceError: window is not defined
at Object.<anonymous> (/var/www/loc/react_frontend/src/components/ui/react_jqxgauge.js:9:17)
at Module._compile (module.js:635:30)
at loader (/var/www/loc/react_frontend/node_modules/babel-register/lib/node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (/var/www/loc/react_frontend/node_modules/babel-register/lib/node.js:154:7)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/var/www/loc/react_frontend/src/components/InvestorPromo/InvestorPromo.jsx:5:1)
[nodemon] app crashed - waiting for file changes before starting...
tell me please how it can be fixed?