ERROR Error: [createInstance] e depends on UNKNOWN service IMarkerNavigationService. #3759
Replies: 4 comments
-
@prathyukurra Could you please provide a repro case? Unfortunately I cannot reproduce when running from source, nor when testing with a packaged monaco editor version. |
Beta Was this translation helpful? Give feedback.
-
In my env, Angular 12.2.9 and monaco-editor 0.27.0, this issue is seen when the project is built with the production flag and not otherwise. |
Beta Was this translation helpful? Give feedback.
-
I could reproduce the issue in a fresh angular project. and here is what I did to fix the issue Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
@vimal-m As You mentioned I updated import To : import * as editor from 'monaco-editor/esm/vs/editor/editor.api'; But I still see the same issue Attached error for reference |
Beta Was this translation helpful? Give feedback.
-
I am working with monaco editors 0.27.0 and using for JSON and angular 11. When ever I load editor page I see a strange error
ERROR Error: [createInstance] e depends on UNKNOWN service IMarkerNavigationService.
Error: [createInstance] e depends on UNKNOWN service IMarkerNavigationService.
at Ko._createInstance (2-es2015.js:1)
at Ko.createInstance (2-es2015.js:1)
at new e (2-es2015.js:1)
at new e (2-es2015.js:1)
at new e (2-es2015.js:1)
at 2-es2015.js:1
at xr (2-es2015.js:1)
at Object.create (2-es2015.js:1)
at e.initMonaco (2-es2015.js:1)
at e.ngAfterViewInit (2-es2015.js:1)
at 2-es2015.js:1
at l.invokeTask (polyfills-es2015.js:1)
at Object.onInvokeTask (main-es2015.js:1)
at l.invokeTask (polyfills-es2015.js:1)
at a.runTask (polyfills-es2015.js:1)
at invokeTask (polyfills-es2015.js:1)
at invoke (polyfills-es2015.js:1)
at n.args. (polyfills-es2015.js:1)
Can I know what is the issue
Beta Was this translation helpful? Give feedback.
All reactions