Error after updating webpack from 5.47.1 to 5.48.0 (Cannot find module 'webpack/lib/rules/DescriptionDataMatcherRulePlugin')
See original GitHub issueVersion
16.3.3
Reproduction link
https://github.com/dsine-de/vue-loader-webpack-update
Steps to reproduce
Clone the repo & run “npm i”, then run “npm run dev” (or “npx webpack”)
What is expected?
There should not be an error: “Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’”
What is actually happening?
[webpack-cli] Failed to load 'C:\repositories\vue-loader-webpack-update\webpack.config.cjs' config
[webpack-cli] Error: Cannot find module 'webpack/lib/rules/DescriptionDataMatcherRulePlugin'
Require stack:
- C:\repositories\vue-loader-webpack-update\node_modules\vue-loader\lib\plugin-webpack5.js
- C:\repositories\vue-loader-webpack-update\node_modules\vue-loader\lib\plugin.js
- C:\repositories\vue-loader-webpack-update\node_modules\vue-loader\lib\index.js
- C:\repositories\vue-loader-webpack-update\webpack.config.cjs
- C:\repositories\vue-loader-webpack-update\node_modules\webpack-cli\lib\webpack-cli.js
- C:\repositories\vue-loader-webpack-update\node_modules\webpack-cli\lib\bootstrap.js
- C:\repositories\vue-loader-webpack-update\node_modules\webpack-cli\bin\cli.js
- C:\repositories\vue-loader-webpack-update\node_modules\webpack\bin\webpack.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (C:\repositories\vue-loader-webpack-update\node_modules\v8-compile-cache\v8-compile-cache.js:159:20)
at Object.<anonymous> (C:\repositories\vue-loader-webpack-update\node_modules\vue-loader\lib\plugin-webpack5.js:6:42)
at Module._compile (C:\repositories\vue-loader-webpack-update\node_modules\v8-compile-cache\v8-compile-cache.js:192:30)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\repositories\\vue-loader-webpack-update\\node_modules\\vue-loader\\lib\\plugin-webpack5.js',
'C:\\repositories\\vue-loader-webpack-update\\node_modules\\vue-loader\\lib\\plugin.js',
'C:\\repositories\\vue-loader-webpack-update\\node_modules\\vue-loader\\lib\\index.js',
'C:\\repositories\\vue-loader-webpack-update\\webpack.config.cjs',
'C:\\repositories\\vue-loader-webpack-update\\node_modules\\webpack-cli\\lib\\webpack-cli.js',
'C:\\repositories\\vue-loader-webpack-update\\node_modules\\webpack-cli\\lib\\bootstrap.js',
'C:\\repositories\\vue-loader-webpack-update\\node_modules\\webpack-cli\\bin\\cli.js',
'C:\\repositories\\vue-loader-webpack-update\\node_modules\\webpack\\bin\\webpack.js'
]
}
Issue Analytics
- State:
- Created 2 years ago
- Reactions:30
- Comments:41
Top Results From Across the Web
node.js - Error: Cannot find module 'webpack/lib/rules ...
I have to manually update the vue-loader:^15.9.8 in the package JSON to solve the error. Then do yarn and yarn dev or npm...
Read more >How to fix Error: cannot find module "webpack" - Educative.io
The Cannot find module webpack occurs when webpack is not globally installed. It is a problem with the npm script or application. You...
Read more >0 - SharePoint Stack Exchange
trying to bundle https://github.com/FaganSC/spfxModernCalendar will raise this error "Error: Cannot find module 'webpack/lib/ParserHelpers'".
Read more >Module Methods - webpack
When using webpack to bundle your application, you can pick from a variety of module syntax styles including ES6, CommonJS, and AMD. While...
Read more >webpack-cli - npm
webpack CLI provides a flexible set of commands for developers to increase speed when setting up a custom webpack project. As of webpack...
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 FreeTop 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
Top GitHub Comments
I am a Laravel user.
npm i vue-loader
updated Vue-loader from 15.9.6 to 15.9.8 fixed this for me using Laravel 7.30.4 and Vue 2.6.12npm i vue-loader
worked for me