ReferenceError: window is not defined

I’m trying to debug the UI, I’m sure I’m doing something wrong in my build. Any advice would be greatly appreciated.

Getting this error:

module.exports = require("./render/render")(window)
ReferenceError: window is not defined
at Object. (genieacs/node_modules/mithril/render.js:3:45)
at Module._extensions…js (internal/modules/cjs/loader.js:827:10)
at Object.require.extensions.(anonymous function) (genieacs/node_modules/ts-node/dist/index.js:341:20)
Waiting for the debugger to disconnect…

Have you made any code changes? What browser have you tested this against?

I was trying to run the wrong object. I didn’t realize the genieacs-ui file in bin was the JS file that had to be run. Once I figured that out I was able to debug fine.

Haven’t made any code changes. I’m really just trying to understand the architecture and execution at this point. Really appreciate the reply.