Skip to content
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

languageDefinitiones is undefined #178

Open
astrolemonade opened this issue May 26, 2021 · 3 comments
Open

languageDefinitiones is undefined #178

astrolemonade opened this issue May 26, 2021 · 3 comments

Comments

@astrolemonade
Copy link

astrolemonade commented May 26, 2021

image\

this is my vue.config.js

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

module.exports = {
  configureWebpack: {
   plugins: [
      new MonacoWebpackPlugin({
        // available options are documented at https://github.com/Microsoft/monaco-editor-webpack-plugin#options
        languages: ['javascript', 'css', 'html', 'typescript', 'json', 'text']
      })
    ]
  }
}
@jleskovar
Copy link

jleskovar commented Aug 1, 2021

Related https://github.com/microsoft/monaco-editor-webpack-plugin/issues/152

Workaround is to pin the following:

    "monaco-editor": "0.20.0",
    "monaco-editor-webpack-plugin": "1.9.1",

Or alternatively don't use webpack, and load via AMD instead.

@jleskovar
Copy link

Can confirm issue is fixed in latest version of monaco-editor (>=0.27.0)

If using yarn, you can pin via:

  "resolutions": {
    "vue-monaco/monaco-editor": "^0.27.0"
  }

@elglogins
Copy link

Related https://github.com/microsoft/monaco-editor-webpack-plugin/issues/152

Workaround is to pin the following:

    "monaco-editor": "0.20.0",
    "monaco-editor-webpack-plugin": "1.9.1",

Or alternatively don't use webpack, and load via AMD instead.

Do you have an example of how to do it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants