[Bug] webpack-plugin 7.0.0 does not work with webpack 4
See original GitHub issueReproducible in vscode.dev or in VS Code Desktop?
- Not reproducible in vscode.dev or VS Code Desktop
Reproducible in the monaco editor playground?
- Not reproducible in the monaco editor playground
Monaco Editor Playground Code
No response
Actual Behavior
error:
ERROR in ./node_modules/monaco-editor/esm/vs/editor/editor.main.js
Module build failed (from ./node_modules/monaco-editor-webpack-plugin/out/loaders/include.js):
TypeError: this.getOptions is not a function
at Object.pitch (./node_modules/monaco-editor-webpack-plugin/out/loaders/include.js:5:63)
In webpack 4, loaderContext
does not have getOptions
and utils
.
Expected Behavior
works with webpack 4
Additional Context
No response
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:8 (5 by maintainers)
Top Results From Across the Web
node.js - Webpack issue when update 4.x to 5.x
Here is the error : webpack-hot-client: entry Object values must be an Array or Function. Please check your webpack config. Here is my...
Read more >Npm run start not working, No configuration provided for main ...
I've been working on a project for quite some time with sage 9.0.9 and it's been working great. ... nom ERR! node modules/stylelint-webpack-plugin...
Read more >error: cannot find module 'css-minimizer-webpack-plugin'
I have deployed this app to Heroku before without issue. Also, usually after "deploying" the first load works but the second does not....
Read more >How to use ReactJS with Webpack 4, Babel 7, and Material ...
First, we are going to work with some paths inside the Webpack config file. Let's install path in our project as a devDependency....
Read more >copy-webpack-plugin
copy-webpack-plugin. TypeScript icon, indicating that this package has built-in type declarations. 11.0.0 • Public • Published 7 months ago.
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
To fix this error, you can include the path
. / Node_modules / monaco-editor / esm / vs / language
into your js rule with appropriate loaders.