Cannot read property 'setImmediate' of undefined when using vite


#1

Hi

I have been trying to use the suite’s npm package with vitejs but when I try to use any object exported by the library I get this error:

Uncaught TypeError: Cannot read property 'setImmediate' of undefined
    at suite.min.js:12
    at Object.<anonymous> (suite.min.js:12)
    at Object.o.m.i (suite.min.js:12)
    at o (suite.min.js:21)
    at Object.o.m.i (suite.min.js:12)
    at o (suite.min.js:21)
    at Object.o.m.i (suite.min.js:12)
    at o (suite.min.js:21)
    at Object.o.m.i (suite.min.js:12)
    at o (suite.min.js:21)

This is my example project

git clone https://github.com/cstffx/dhx-example.git 
cd dhx-example
yarn  
yarn dev