-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic require() calls produce a warning in webpack #42
Comments
This seems to be related to webpack/webpack-dev-server#212 Here is a suggestion on how to solve it. |
Same warning messages for me with A solution that worked for me is to add the following to externals: {
bindings: 'require("bindings")'
} And also to copy the It would be nice to be able to configure webpack to avoid such coping though. |
I had to use something like: const odbc = require( "electron" ).remote.require( "odbc" ); Otherwise, I got an error. |
Neither of these worked for me as there were some downstream issues, but the comment here resolved it for me jsdom/jsdom#2066 (comment) |
If you want to avoid using |
My webpack builds currently produce the following warning for webpack
{ target: 'node' }
(but not for{ target: 'web' }
:This is the line that produces the warning:
Versions:
The text was updated successfully, but these errors were encountered: