Cannot read property 'setImmediate' of undefined when using vite

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

This problem persists in the 7.3.0 version

Did you sort this one out?

Nop, not yet. :sweat:

I apologize for the delay with the reply.
As a workaround please try to include the dhx.Suite sources globally in the package.json in the “scripts” section instead of importing the sources to the specific view.