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

Cannot find module ‘webpack-cli/bin/config-yargs‘ #86

Open
george-es opened this issue Jan 19, 2021 · 0 comments
Open

Cannot find module ‘webpack-cli/bin/config-yargs‘ #86

george-es opened this issue Jan 19, 2021 · 0 comments
Labels

Comments

@george-es
Copy link
Owner

这里是因为 webpack-dev-server 和 webpack-cli 4.X 不兼容导致的
image
这里使用降级处理,不需要降低 webpack 版本,仍然使用 webpack 5,只需要降低 webpack-cli 版本就可以了,这里降为 3.3.12
image
重新运行 yarn webpack-dev-server 成功

@george-es george-es added the node label Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant