egoist/vue-monaco

[Vue warn]: Error in mounted hook

flyinhigh opened this issue · 3 comments

configureWebpack: (config) => {
    if (process.env.NODE_ENV === 'production') {
      config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
    }
    config.plugins.push(
      new MonocoEditorPlugin({ languages: ['javascript', 'css', 'html'] })
    )
  }
        <monaco-editor
            language="javascript"
            :options="editorOptions"
            :code="specCodes"
            :changeThrottle="500"
            @editorDidMount="editorMounted"
            @change="onCodeChange"
            theme="vs"
            width="900"
        >
        </monaco-editor>
[Vue warn]: Error in mounted hook: "TypeError: this.model.getOneIndent is not a function"

I reinstall the vue-monaco , it's work.

it didn't for me

I fixed it by upgrading to webpack 4