[Vue warn]: Error in mounted hook
flyinhigh opened this issue · 3 comments
flyinhigh commented
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"
flyinhigh commented
I reinstall the vue-monaco , it's work.
discobanco commented
it didn't for me
discobanco commented
I fixed it by upgrading to webpack 4