Current version of webpack-dev-server fails on build.
See original GitHub issuei after run yarn webpack
received error in console.
Error is:
Error: Cannot find module 'webpack-cli/bin/config-yargs'
Require stack:
- D:\PersianDnn\Dnn.Platform\Dnn.AdminExperience\Extensions\Content\Dnn.PersonaBar.Extensions\WebApps\Roles.Web\node_modules\webpack-dev-server\bin\webpack-dev-server.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:713:15)
at Function.Module._load (internal/modules/cjs/loader.js:618:27)
at Module.require (internal/modules/cjs/loader.js:771:19)
at require (internal/modules/cjs/helpers.js:68:18)
at Object.<anonymous> (D:\PersianDnn\Dnn.Platform\Dnn.AdminExperience\Extensions\Content\Dnn.PersonaBar.Extensions\WebApps\Roles.Web\node_modules\webpack-dev-server\bin\webpack-dev-server.js:84:1)
at Module._compile (internal/modules/cjs/loader.js:868:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:879:10)
at Module.load (internal/modules/cjs/loader.js:731:32)
at Function.Module._load (internal/modules/cjs/loader.js:644:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:931:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'D:\\PersianDnn\\Dnn.Platform\\Dnn.AdminExperience\\Extensions\\Content\\Dnn.PersonaBar.Extensions\\WebApps\\Roles.Web\\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.
Steps:
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Webpack-dev-server doesn't work after upgraded its version
I was using webpack-dev-server of version ^3.11.2 and I migrated the version to the latest ^4.7.4. Then as usual I tried to run...
Read more >npm install fails when webpack-dev-server is added #1832
Operating System: Windows 10 Node Version: v10.15.3 NPM Version: 6.4.1 webpack Version: 4.30.0 webpack-dev-server Version: 3.3.1 [x ] This ...
Read more >How I solved and debugged my Webpack issue through ...
When webpack bundles your source code, it can become difficult to track down errors and warnings to their original location.
Read more >Webpack Dev Server Not Working (Outdated!) (Example)
I am having trouble running the Webpack Dev Server according to the ... src/index.js Module build failed: TypeError: Cannot read property ...
Read more >Development
webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was able to reproduce the issue, looks like this is an issue with webpack and we need to update it’s version. After upgrading webpack to 4.31.0 I was able to build without this error, however I did not do extensive testing with this upgrade… I am changing the title of the issue for that reason.
Ok, I will try and announce the result