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

Closed
kameshfourbends opened this issue Aug 17, 2021 · 1 comment · Fixed by #1521
Closed

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

kameshfourbends opened this issue Aug 17, 2021 · 1 comment · Fixed by #1521
Labels
bug Something isn't working
Milestone

Comments

@kameshfourbends
Copy link

kameshfourbends commented Aug 17, 2021

I installed latest LTS NodeJS . Then I installed Yarn also. I cloned boa after that I ran 'Yarn install'.
Then I ran 'Yarn serve'. I got the below message.

I got the below issue:

PS G:\rust-node-example\boa> yarn serve
yarn run v1.22.5
$ webpack-dev-server
internal/modules/cjs/loader.js:892
  throw err;
  ^

Error: Cannot find module 'webpack-cli/bin/config-yargs'
Require stack:
- G:\rust-node-example\boa\node_modules\webpack-dev-server\bin\webpack-dev-server.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15)
    at Function.Module._load (internal/modules/cjs/loader.js:745:27)
    at Module.require (internal/modules/cjs/loader.js:961:19)
    at require (internal/modules/cjs/helpers.js:92:18)
    at Object.<anonymous> (G:\rust-node-example\boa\node_modules\webpack-dev-server\bin\webpack-dev-server.js:65:1)
    at Module._compile (internal/modules/cjs/loader.js:1072:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
    at Module.load (internal/modules/cjs/loader.js:937:32)
    at Function.Module._load (internal/modules/cjs/loader.js:778:12)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'G:\\rust-node-example\\boa\\node_modules\\webpack-dev-server\\bin\\webpack-dev-server.js'
  ]
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@Razican
Copy link
Member

Razican commented Aug 27, 2021

Hi @kameshfourbends thank you for this report. Could you check if the fix_yarn_build branch fixes this for you?

@Razican Razican added this to the v0.13.0 milestone Sep 19, 2021
bors bot pushed a commit that referenced this issue Feb 20, 2022
This Pull Request fixes/closes #1670.

It changes the following:

- Removes the "js" feature by default from getrandom for wasm (still there for boa_wasm)
- Updates dependencies

Note that this change was introduced in #1521, after #1475. We must make sure that the issue doesn't come back.
Razican added a commit that referenced this issue Feb 21, 2022
This Pull Request fixes/closes #1670.

It changes the following:

- Removes the "js" feature by default from getrandom for wasm (still there for boa_wasm)
- Updates dependencies

Note that this change was introduced in #1521, after #1475. We must make sure that the issue doesn't come back.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants