ngx-monaco-editor icon indicating copy to clipboard operation
ngx-monaco-editor copied to clipboard

Uncaught TypeError: this._editor.onDidBlurEditor

Open jesusvallez opened this issue 6 years ago • 3 comments

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)

jesusvallez avatar Dec 05 '18 11:12 jesusvallez

Hey, did you made any progress? I started having the same issue out of nowhere.

StefanAleksik avatar Mar 22 '19 14:03 StefanAleksik

Upgraded to 7.0.0, I also encountered this error, do not know how to solve it? Is there any solution?

MengQingYan1998 avatar Sep 27 '19 02:09 MengQingYan1998

Did anyone made progress in 2020?

thx

Aggravate avatar Sep 08 '20 09:09 Aggravate

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" }
],

cesare-montresor avatar Nov 23 '22 16:11 cesare-montresor