Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module 'webpack/lib/RuleSet' #218

Open
alexandresabtec opened this issue Aug 17, 2024 · 4 comments
Open

Error: Cannot find module 'webpack/lib/RuleSet' #218

alexandresabtec opened this issue Aug 17, 2024 · 4 comments

Comments

@alexandresabtec
Copy link

Require stack:

  • /www/wwwroot/zabtec/frontend/node_modules/vue-loader/lib/plugin-webpack4.js
  • /www/wwwroot/zabtec/frontend/node_modules/vue-loader/lib/plugin.js
  • /www/wwwroot/zabtec/frontend/node_modules/@quasar/app/lib/webpack/create-chain.js
  • /www/wwwroot/zabtec/frontend/node_modules/@quasar/app/lib/webpack/index.js
  • /www/wwwroot/zabtec/frontend/node_modules/@quasar/app/lib/quasar-conf-file.js
  • /www/wwwroot/zabtec/frontend/node_modules/@quasar/app/bin/quasar-build
  • /www/wwwroot/zabtec/frontend/node_modules/@quasar/app/bin/quasar

como resolver esse erro, ficarei muito grato com uma ajuda

@alexandresabtec
Copy link
Author

infelizmente não deu certo, continua o mesmo erro.

@ricardo98349
Copy link

ricardo98349 commented Aug 20, 2024

Também tenho esse erro:

quando executo o comando: quasar build -P -m pwa, recebo o erro:

App · Compiling with Webpack...
node:internal/modules/cjs/loader:1145
const err = new Error(message);
^

[ Error: Cannot find module 'webpack/lib/RuleSet'
Require stack:

  • /www/wwwroot/teste1/frontend/node_modules/vue-loader/lib/plugin-webpack4.js

  • /www/wwwroot/teste1/frontend/node_modules/vue-loader/lib/plugin.js

  • /www/wwwroot/teste1/frontend/node_modules/@quasar/app/lib/webpack/create-chain.js

  • /www/wwwroot/teste1/frontend/node_modules/@quasar/app/lib/webpack/index.js

  • /www/wwwroot/teste1/frontend/node_modules/@quasar/app/lib/quasar-conf-file.js

  • /www/wwwroot/teste1/frontend/node_modules/@quasar/app/bin/quasar-build

  • /www/wwwroot/teste1/frontend/node_modules/@quasar/app/bin/quasar

  • /www/server/nvm/versions/node/v20.13.1/lib/node_modules/@quasar/cli/bin/quasar.js

  • loader:1145 Module._resolveFilename
    node:internal/modules/cjs/loader:1145:15

  • loader:986 Module._load
    node:internal/modules/cjs/loader:986:27

  • loader:1233 Module.require
    node:internal/modules/cjs/loader:1233:19

  • helpers:179 require
    node:internal/modules/helpers:179:18

  • plugin-webpack4.js:2 Object.
    [frontend]/[vue-loader]/lib/plugin-webpack4.js:2:17

  • loader:1358 Module._compile
    node:internal/modules/cjs/loader:1358:14

  • loader:1416 Module._extensions..js
    node:internal/modules/cjs/loader:1416:10

  • loader:1208 Module.load
    node:internal/modules/cjs/loader:1208:32

  • loader:1024 Module._load
    node:internal/modules/cjs/loader:1024:12

  • loader:1233 Module.require
    node:internal/modules/cjs/loader:1233:19

  • helpers:179 require
    node:internal/modules/helpers:179:18

  • plugin.js:11 VueLoaderPlugin.apply
    [frontend]/[vue-loader]/lib/plugin.js:11:14

  • webpack.js:51 webpack
    [frontend]/[app]/[webpack]/lib/webpack.js:51:13

  • webpack.js:36
    [frontend]/[app]/[webpack]/lib/webpack.js:36:39

  • Array.map

  • webpack.js:36 webpack
    [frontend]/[app]/[webpack]/lib/webpack.js:36:24

] {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/www/wwwroot/teste1/frontend/node_modules/vue-loader/lib/plugin-webpack4.js',
'/www/wwwroot/teste1/frontend/node_modules/vue-loader/lib/plugin.js',
'/www/wwwroot/teste1/frontend/node_modules/@quasar/app/lib/webpack/create-chain.js',
'/www/wwwroot/teste1/frontend/node_modules/@quasar/app/lib/webpack/index.js',
'/www/wwwroot/teste1/frontend/node_modules/@quasar/app/lib/quasar-conf-file.js',
'/www/wwwroot/teste1/frontend/node_modules/@quasar/app/bin/quasar-build',
'/www/wwwroot/teste1/frontend/node_modules/@quasar/app/bin/quasar',
'/www/server/nvm/versions/node/v20.13.1/lib/node_modules/@quasar/cli/bin/quasar.js'
]
}

Node.js v20.13.1

@mendesalexandre
Copy link

npm i webpack@4 -D --legacy-peer-deps
Esse comando resolveu aqui

@tsinghua-lau
Copy link

npm i webpack@4 -D --legacy-peer-deps

This solution solves the problem

node -v: 12.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@mendesalexandre @tsinghua-lau @ricardo98349 @alexandresabtec and others