vue3.0 cliError: Cannot find module 'vs/editor/contrib/anchorSelect/anchorSelect'
Closed this issue ยท 3 comments
Uranus-s commented
vue.config.js Cannot run after adding code
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')
module.exports = {
chainWebpack: config => {
config.plugin('monaco-editor').use(MonacoWebpackPlugin, [
{
// Languages are loaded on demand at runtime
languages: ['json', 'javascript', 'html', 'xml']
}
])
}
}
rahulkumarsingh73690 commented
monaco-editor-webpack-plugin
Found solution ๐
monaco-editor-webpack-plugin 1.9.0 is supported currently in this monaco-editor-vue
yerol commented
@rahulkumarsingh73690 thanks. It works with monaco-editor-webpack-plugin 1.9.1 as well ๐
FE-Mars commented
Thanks, I'll close the issue