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.

Error after updating webpack from 5.47.1 to 5.48.0 (Cannot find module 'webpack/lib/rules/DescriptionDataMatcherRulePlugin')

See original GitHub issue

Version

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:closed
  • Created 2 years ago
  • Reactions:30
  • Comments:41

github_iconTop GitHub Comments

200reactions
petem46commented, Aug 17, 2021

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.12

        "vue": "^2.6.12",
        "vue-loader": "^15.9.8",
73reactions
Ilobacommented, Aug 18, 2021

npm i vue-loader worked for me

Read more comments on GitHub >

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

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