-
Notifications
You must be signed in to change notification settings - Fork 35
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' #11
Comments
Did you install webpack and webpack-cli ? Even I have an issue with client setup, but beyond step 4 ... I got this issue and installed web pack-cli and it worked well. |
I am also encountering the same issue in step 4 for client set up. D:\AWS\Aws Angular\Demos\gitdemo\aws-cloudwatch-building-dashboard-outside-aws-console\client>npm i -g webpack
D:\AWS\Aws Angular\Demos\gitdemo\aws-cloudwatch-building-dashboard-outside-aws-console\client>npm i -g webpack-cli
D:\AWS\Aws Angular\Demos\gitdemo\aws-cloudwatch-building-dashboard-outside-aws-console\client>npm start
internal/modules/cjs/loader.js:638 Error: Cannot find module 'webpack-cli/bin/config-yargs' |
I faced the same problem, but I solved it by modifying package.json. {
"name": "js-widget",
"scripts": {
"build": "./node_modules/.bin/webpack server --config webpack.config.js",
"start": "./node_modules/.bin/webpack server --open"
},
"dependencies": {
"@babel/core": "^7.0.0-beta.32",
"@babel/preset-env": "^7.0.0-beta.32",
"babel-loader": "^8.0.0-beta.0",
"copy-webpack-plugin": "^4.5.2",
"html-loader": "^0.5.1",
"json-loader": "^0.5.7",
"js-widgets": "0.0.92",
"webpack": "4.46.0",
"webpack-cli": "^4.7.2",
"webpack-dev-server": ">=3.11.2",
"webpack-dev-middleware": "3.7.3",
"request": "^2.88.0"
}
}
|
Hello,
While i was working on the "Client setup" mentioned in step 4, i got the below error.
Error Details:
[xx-client]$ ./node_modules/.bin/webpack-dev-server --open
The CLI moved into a separate package: webpack-cli
Please install 'webpack-cli' in addition to webpack itself to use the CLI
-> When using npm: npm i -D webpack-cli
-> When using yarn: yarn add -D webpack-cli
internal/modules/cjs/loader.js:1032
throw err;
^
Error: Cannot find module 'webpack-cli/bin/config-yargs'
The text was updated successfully, but these errors were encountered: