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/bin/config-yargs' #36

Open
mlbao opened this issue Sep 28, 2023 · 1 comment
Open

Error: Cannot find module 'webpack/bin/config-yargs' #36

mlbao opened this issue Sep 28, 2023 · 1 comment

Comments

@mlbao
Copy link

mlbao commented Sep 28, 2023

node -v. v16.14.0

npm -v. 8.3.1

yarn run v1.22.19
$ npm run dev

mall-admin-web@1.0.0 dev
webpack-dev-server --inline --progress --config build/webpack.dev.conf.js

node:internal/modules/cjs/loader:936
throw err;
^

Error: Cannot find module 'webpack/bin/config-yargs'
Require stack:

  • /Users/baoming/Documents/study/opensource/mall-admin-web/node_modules/webpack-dev-server/bin/webpack-dev-server.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 (node:internal/modules/cjs/helpers:102:18)
    at Object. (/Users/baoming/Documents/study/opensource/mall-admin-web/node_modules/webpack-dev-server/bin/webpack-dev-server.js:54:1)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) {
    code: 'MODULE_NOT_FOUND',
@tanxingzhou712
Copy link

tanxingzhou712 commented Sep 28, 2023 via email

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

2 participants