webpack 1:43-50 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted #939

Closed
opened 2025-08-09 17:18:15 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @ghost on 3/14/2017

I was getting the following using the default webpack (reactjs-redux):
WARNING in ./~/formidable/lib/incoming_form.js
1:43-50 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
at CommonJsRequireContextDependency.getWarnings

Solved by exending the webpack plugins as follows:

plugins: [new CheckerPlugin(), new webpack.DefinePlugin({ "global.GENTLY": false })]

*Originally created by @ghost on 3/14/2017* I was getting the following using the default webpack (reactjs-redux): WARNING in ./~/formidable/lib/incoming_form.js 1:43-50 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted at CommonJsRequireContextDependency.getWarnings Solved by exending the webpack plugins as follows: plugins: [new CheckerPlugin(), new webpack.DefinePlugin({ "global.GENTLY": false })]
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#939
No description provided.