ngx-monaco-editor
ngx-monaco-editor copied to clipboard
Uncaught TypeError: this._editor.onDidBlurEditor
I got this error when a run my project with default config. It seems work good but its a error when I look then chrome console.
Uncaught TypeError: this._editor.onDidBlurEditor is not a function
at EditorComponent.push../node_modules/ngx-monaco-editor/editor.component.js.EditorComponent.initMonaco (editor.component.js:83)
at base-editor.js:55
at Function.t._invokeFactory (loader.js:23)
at t.complete (loader.js:23)
at s._onModuleComplete (loader.js:33)
at s._onModuleComplete (loader.js:33)
at s._onModuleComplete (loader.js:33)
at s._onModuleComplete (loader.js:33)
at s._onModuleComplete (loader.js:33)
at s._onModuleComplete (loader.js:33)
Hey, did you made any progress? I started having the same issue out of nowhere.
Upgraded to 7.0.0, I also encountered this error, do not know how to solve it? Is there any solution?
Did anyone made progress in 2020?
thx
so, i fixed it, change your assets import to use the monaco-editore loader coming from the ngx-monaco-editor
New
"assets": [
{ "glob": "**/*", "input": "node_modules/ngx-monaco-editor/assets/monaco","output": "assets/monaco"}
],
Old
"assets": [
{ "glob": "**/*", "input": "node_modules/monaco-editor", "output": "assets/monaco-editor" }
],