FE-Mars/monaco-editor-vue

vue3.0 cliError: Cannot find module 'vs/editor/contrib/anchorSelect/anchorSelect'

Closed this issue ยท 3 comments

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']
      }
    ])
  }
}

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 ๐Ÿ‘

Thanks, I'll close the issue