vue-monaco
vue-monaco copied to clipboard
languageDefinitiones is undefined
\
this is my vue.config.js
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')
module.exports = {
configureWebpack: {
plugins: [
new MonacoWebpackPlugin({
// available options are documented at https://github.com/Microsoft/monaco-editor-webpack-plugin#options
languages: ['javascript', 'css', 'html', 'typescript', 'json', 'text']
})
]
}
}
Related https://github.com/microsoft/monaco-editor-webpack-plugin/issues/152
Workaround is to pin the following:
"monaco-editor": "0.20.0",
"monaco-editor-webpack-plugin": "1.9.1",
Or alternatively don't use webpack, and load via AMD instead.
Can confirm issue is fixed in latest version of monaco-editor (>=0.27.0)
If using yarn, you can pin via:
"resolutions": {
"vue-monaco/monaco-editor": "^0.27.0"
}
Related https://github.com/microsoft/monaco-editor-webpack-plugin/issues/152
Workaround is to pin the following:
"monaco-editor": "0.20.0", "monaco-editor-webpack-plugin": "1.9.1",
Or alternatively don't use webpack, and load via AMD instead.
Do you have an example of how to do it?