jQuery UI Widgets Forums React ReferenceError: window is not defined

This topic contains 1 reply, has 2 voices, and was last updated by  assembler 6 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • ReferenceError: window is not defined #97246

    martr
    Participant

    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?

    ReferenceError: window is not defined #97252

    assembler
    Participant

    You don’t say too much with that error. It will be helpful if you post your code.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.