materiahq / ngx-monaco-editor

Monaco Editor Library for Angular v6 and above
MIT License
159 stars 35 forks source link

Cannot set property 'browser' of undefined #63

Open danpercic86 opened 3 years ago

danpercic86 commented 3 years ago

Hello,

I configured the editor and it works as expected, but I get this error in console:

Uncaught TypeError: Cannot set property 'browser' of undefined
    at <anonymous>:1:46
    at MonacoEditorLoaderService.addElectronFixScripts (materia-ui-ngx-monaco-editor.js:80)
    at MonacoEditorLoaderService.loadMonaco (materia-ui-ngx-monaco-editor.js:63)
    at new MonacoEditorLoaderService (materia-ui-ngx-monaco-editor.js:29)
    at Object.MonacoEditorLoaderService_Factory [as factory] (materia-ui-ngx-monaco-editor.js:88)
    at R3Injector.hydrate (core.js:11412)
    at R3Injector.get (core.js:11232)
    at NgModuleRef$1.get (core.js:25325)
    at R3Injector.get (core.js:11243)
    at NgModuleRef$1.get (core.js:25325)

Thanks!