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.

[Bug] webpack-plugin 7.0.0 does not work with webpack 4

See original GitHub issue

Reproducible in vscode.dev or in VS Code Desktop?

  • Not reproducible in vscode.dev or VS Code Desktop

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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ValeraScommented, Dec 16, 2021

Not working anyway.

To fix this error, you can include the path . / Node_modules / monaco-editor / esm / vs / language into your js rule with appropriate loaders.

0reactions
perryhongcommented, Dec 22, 2021

Not working anyway.

To fix this error, you can include the path . / Node_modules / monaco-editor / esm / vs / language into your js rule with appropriate loaders. what loaders how can i use?

Read more comments on GitHub >

github_iconTop 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 >

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