I am using monaco-editor in my Vue web application. The editor loads and runs completely fine. However, I need to change the autocomplete sources for the editor. When doing so, the following code throws :
Uncaught (in promise) TypeError: Cannot read property 'setCompilerOptions' of undefined
I am using monaco-editor in my Vue web application. The editor loads and runs completely fine. However, I need to change the autocomplete sources for the editor. When doing so, the following code throws :
Uncaught (in promise) TypeError: Cannot read property 'setCompilerOptions' of undefined
And the editors fails to load.
Am I misusing the monaco instance?
The editor works fine with the following code: