_this._model.onDidChangeRawContent is not a function
Opened this issue · 2 comments
I've implemented on nuxt as indicated in the issues list.
nuxt version is 2.14.5.
build: {
plugins: [
new MonacoWebpackPlugin({
languages: ['javascript']
})
],
extend(config, ctx){
}
},
When I put the monaco editor component in the template, the following error occurs.
TypeError: _this._model.onDidChangeRawContent is not a function
at new Cursor (cursor.js?f961:154)
at StandaloneEditor.CodeEditorWidget._attachModel (codeEditorWidget.js?4a22:963)
at StandaloneEditor._attachModel (standaloneCodeEditor.js?e05c:204)
at new StandaloneEditor (standaloneCodeEditor.js?e05c:186)
at eval (standaloneEditor.js?3955:58)
at withAllStandaloneServices (standaloneEditor.js?3955:45)
at Object.create (standaloneEditor.js?3955:57)
at VueComponent.initMonaco (index.js?b61c:124)
at VueComponent.mounted (index.js?b61c:105)
at invokeWithErrorHandling (vue.runtime.esm.js?2b0e:1854)
same issue here
Yep.
TypeError: _this._model.onDidChangeRawContent is not a function
at new Cursor (cursor.js?17bc:154)
at StandaloneEditor.CodeEditorWidget._attachModel (codeEditorWidget.js?67ce:992)
at StandaloneEditor._attachModel (standaloneCodeEditor.js?a7f7:217)
at new StandaloneEditor (standaloneCodeEditor.js?a7f7:199)
at eval (standaloneEditor.js?463e:58)
at withAllStandaloneServices (standaloneEditor.js?463e:45)
at Object.create (standaloneEditor.js?463e:57)
at VueComponent.initMonaco (vue-monaco.es.js?059c:109)
at VueComponent.mounted (vue-monaco.es.js?059c:83)
at invokeWithErrorHandling (vue.runtime.esm.js?2b0e:1854)