TypeError: languageDefinitions is undefined
See original GitHub issueI 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:
- Created 2 years ago
- Reactions:1
- Comments:8 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I selected those versions and I can resolve this problem.
I confimed verions of node.js is
v14.17.3
andv16.5.0
.I’m not sure where the problem is. I think this might be a problem with
react-monaco-editor
.