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:
- Created 5 years ago
- Reactions:4
- Comments:8 (4 by maintainers)
Top 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 ... - You.com
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 >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
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.
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.