suren-atoyan / monaco-loader

The utility to easy setup monaco-editor into your browser
MIT License
177 stars 37 forks source link

addEventListener is not a function - when running from Vite (built) #27

Open damianof opened 1 year ago

damianof commented 1 year ago

Uncaught TypeError: el.addEventListener is not a function at addEventListener (index.js:4469:6) at platform.ts:162:11 at platform.ts:184:46 at s._invokeFactory (loader.js:1189:41) at s.complete (loader.js:1199:36) at s._onModuleComplete (loader.js:1825:20) at s._resolve (loader.js:1785:22) at s.defineModule (loader.js:1428:18) at g (loader.js:1875:27) at numbers.ts:26:1

Points to this: function addEventListener(el, event, handler, options) { el.addEventListener(event, handler, options); }