[Vuejs]-Monaco Editor Web Worker Issue with Vue 3

0👍

It looks like you put the plugin in the wrong place. It’s supposed to be placed in configureWebpack which represents for webpack configuration instead:

vue.config.js

const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');

module.exports = {
  configureWebpack: {
    plugins: [
      new MonacoWebpackPlugin(), // Place it here
    ]
  },
  // ...
}

Leave a comment