-
Notifications
You must be signed in to change notification settings - Fork 16
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' #27
Comments
My package.json:
|
I'm also facing the same issue |
I don't webpack 4 is supported at present. In webpack 4 config-yargs sits inside webpack-cli. |
wtf? how do I fix this? |
I had faced the same issue since I am using webpack 4.8.3 then I have been installed my package.json: FYR "devDependencies": { |
I had this issue as I had webpack-dev-server v2.x installed against webpack v4. now, updated to dev-server v3 and it works.
|
I am also having this issue, and i have webpack-cli installed. this issue makes sense, since |
C:\rjs>npm run start
× 「wds」: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
npm ERR! A complete log of this run can be found in: I am facing this issue, help me out |
@ajchandrawat your issue is not related to this topic. |
I also have this issue - I have
error:
|
this package is not compatible with the latest stable release of webpack. |
@quinn : can you elaborate ? I have the same issue as OP and as @brien-givens. From what I understand, installing webpack-cli solves the issue in many cases, however I have it installed. I have the latest versions installed as of today : |
@harvey56 I have the same problem as you, I have not fixed it. |
@tchakabam Thank I solved the issue |
@tchakabam very nice! |
mark |
updating webpack-dev-server helped. thanks! |
I'm still having issues with this, have tried all of the above. in devDependencies:
Every time I try to run
At a loss, can anybody help? |
@Brandonprs I had the same error message with Downgrading |
Why is this issue closed? Is there a solution now? |
@0x53A It actually had turned out to be something weird where I had started using |
My current solution was to upgrade to: |
Following versioning worked for me:
|
I am also getting this issue with the latest versions of all packages: {
"devDependencies": {
"webpack": "^4.35.2",
"webpack-cli": "^3.3.5",
"webpack-dev-server": "^3.7.2"
},
} This is the error which is returned: yarn run v1.13.0
$ webpack-dev-server
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:615
throw err;
^
Error: Cannot find module 'webpack-cli/bin/config-yargs'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:613:15)
at Function.Module._load (internal/modules/cjs/loader.js:539:25)
at Module.require (internal/modules/cjs/loader.js:667:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (/Users/jackscott/Documents/workspace/widgets/node_modules/webpack-dev-server/bin/webpack-dev-server.js:60:1)
at Module._compile (internal/modules/cjs/loader.js:738:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:749:10)
at Module.load (internal/modules/cjs/loader.js:630:32)
at tryModuleLoad (internal/modules/cjs/loader.js:570:12)
at Function.Module._load (internal/modules/cjs/loader.js:562:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. |
My solution was to remove hoisting from my yarn workspace i.e. in my root
|
had the same issue. Updating dev-server solved it. |
Updating webpack-dev-server@3.4.1 thanks! |
I am also facing the same issue.
My dependencies:
Expecting stable solution. :) |
@cmaliwal any update issue? |
This works for me
|
According to your comment, I solved this by: And it worked for me. |
After |
with latest
Since |
I'm also facing the same issue |
https://medium.com/@cyishere/error-cannot-find-module-webpack-cli-bin-config-yargs-6d704533062a Versions from this article helped me fix the problem |
@suplakite Thanks a bunch! That worked for me. I used the following versions to make webpack dev server work: |
My package.json is this - But still getting the same issue. |
I'am using webpack 4 and when trying to run my tests with this package I get the following error:
The text was updated successfully, but these errors were encountered: