-
-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warnings & errors (+) #18
Comments
Likewise same problem here; there does seem to be some discussion on various vsCode issues. UPDATE: In my use case, I wanted to have just json editting - and removing both JavaScript and TypeScript Setting that programmaticly might work after the editor is setup? |
I solved the problemvue-CLI 3
|
I believe that the reason this is happening in this case is because of this comment: microsoft/monaco-editor-webpack-plugin#27 (comment) That would make sense why when you remove JavaScript or pass in null it works. In my case, I'm using this in Quasar so:
extendWebpack (cfg) {
const MonacoEditorPlugin = require('monaco-editor-webpack-plugin')
cfg.plugins.push(new MonacoEditorPlugin({
// Require typescript to include a dependency needed by javascript
languages: ['javascript', 'typescript']
}))
}
<template lang="pug">
MonacoEditor.editor(v-model='workspace.code' language='javascript')
</template> |
For javascript don't add 'javascript' on vue.config.js. Add 'typescript' App.vue
vue.config.js
|
I'm getting some warnings and errors in console.
I'm using vue-CLI 3 generated base app with vue.config.js:
What I'm doing wrong?
The text was updated successfully, but these errors were encountered: