Vault Enterprise throws TypeError when imported into Angular


I try to embed the Enterprise version of Vault 4.1.0 into an Angular 9 application. I copied the codebase and installed the npm package. The vault.js and vault.css files have been both added to angular.json. I followed the official instructions on but when starting the application an uncaught TypeError is thrown:
vault.js:1189 Uncaught TypeError: Cannot read properties of undefined (reading 'setImmediate') at vault.js:1189:1
I had similar issues with the Suite but was able to resolve them: Angular > TypeError: Cannot read properties of undefined (reading ‘setImmediate’)
But I am not able to resolve the Vault TypeError. Any suggestions?


Please, try to include the dhx.Vault sources globally in your app in the angular.json file in the “scripts” section, and then import the component from that included sources in that needed view instead of importing the courses directly to the needed view.