Error al importar dhx-suite sobre angular 9 con node v12.19

Dear DHTMLX

We are using Angular 9 with node 12.19.0.

When importing

import {Combobox as ComboboxDHX} from “dhx-suite”

The error in the browser is

11: 42: 18.378 suite.js: 1606 Uncaught TypeError: Cannot read property ‘setImmediate’ of undefined
at suite.js: 1606
at Object. (suite.js: 1914)
at Object. (suite.js: 1916)
at nested_webpack_require_762 (suite.js: 41)
at Object. (suite.js: 172)
at nested_webpack_require_762 (suite.js: 41)
at Object. (suite.js: 11104)
at nested_webpack_require_762 (suite.js: 41)
at Object. (suite.js: 11074)
at nested_webpack_require_762 (suite.js: 41)

Could you please, provide a complete demo, where the problem could be reconstructed locally.
if it is a “audioRedaccion” demo from the support (according to the nickname it is seems to be you) I hope the problem is solved.

Hi, we can see the same error if we try to import the dhx-suite module hosted in npm with vitejs instead of webpack in a plain javascript project.

I apologize for the delay with the reply.
Could you please, provide a complete demo or you app, so the problem could be checked locally.

I am getting the same error when importing the following line in a component which is a part of a module

import { Grid as GridDHX} from ‘src/assets/Libs/jsLibs/dhtmlx-suite-7/suite’;

any solution?

Please, try to import the dhx sources globally in the app, instead of importing them to a specific view. It should solve the problem.
If the problem still occurs for you could you please, provide a complete demo, where the problem could be tested.