question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: languageDefinitions is undefined

See original GitHub issue

image

I am using vue and here 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']
      })
    ]
  }
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
goofmintcommented, Jul 29, 2021

I selected those versions and I can resolve this problem.

    "monaco-editor": "0.20.0",
    "monaco-editor-webpack-plugin": "1.9.1",
    "vue": "^2.6.11",
    "vue-monaco": "^1.2.2",

I confimed verions of node.js is v14.17.3 and v16.5.0.

0reactions
alexdimacommented, Aug 23, 2021

I’m not sure where the problem is. I think this might be a problem with react-monaco-editor.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read property 'language' of undefined
Create jest-setup.js file (if already not exists) and add following lines in that import { NativeModules } from 'react-native'; ...
Read more >
Monaco Editor Monarch - Microsoft Open Source
This document describes how to create a syntax highlighter using the Monarch library. This library allows you to specify an efficient syntax highlighter,...
Read more >
How to use highlight.js
Highlight.js supports over 180 languages in the core library. There are also 3rd party language definitions available to support even more languages.
Read more >
Plugins - Prettier
Languages is an array of language definitions that your plugin will contribute to Prettier. It can include all of the fields specified in...
Read more >
Basics of Functional K - K Framework
undefined, but the backend will not stop itself from applying the rule in this ... generate a type error. ... language definitions.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found