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.

Warning in webpack - critical dependency

See original GitHub issue
./node_modules/detect-browser/index.js 3:24-31
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

only in v4, in v3.0.1 it’s okey

Issue Analytics

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

github_iconTop GitHub Comments

DamonOehlmancommented, Jan 7, 2019

Cool thanks - it’s pretty late here (in Australia), but I’ll try to take a look first thing tomorrow and put a small repro case together to see if I can work out what is going on.

DamonOehlmancommented, Jan 7, 2019

Thanks for the information and assistance in getting this sorted. @severi nice tip using create-react-app - definitely made reproing everything much faster.

4.0.1 has now landed and I expect that it will fix this issue nicely. Let me know if it doesn’t though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hiding Critical Dependency Warnings from webpack - Medium
You can use the Webpack's ContextReplacementPlugin to acknowledge dependency warnings that you have investigated and found safe.
Read more >
Webpack Warning: Critical dependency: the request of a ...
When looking at webpack/webpack#196 this seems to be a webpack warning about a require statement using a dynamic path for loading, as this...
Read more >
Webpack - Critical dependency: the request of a dependency ...
I am getting three warning messages when importing request in a barebone webpack project. A minimal example to reproduce the bug is ...
Read more >
critical dependency the request of a dependency is ... -
I have this warning on webpack build (I use Webpack DLL plugin). My react app then works fine but I cannot use ReactPDF,...
Read more >
Integration with WebPack - Linkurious documentation
Newer versions of webpack can show the following warning message when compiling, ... Critical dependency: the request of a dependency is an expression....
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 Post

No results found

github_iconTop Related Hashnode Post

No results found