question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Current version of webpack-dev-server fails on build.

See original GitHub issue

i 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: Untitled

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
valadascommented, Nov 11, 2019

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.

1reaction
mnouraeicommented, Nov 10, 2019

Ok, I will try and announce the result

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found