-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Error while building with webpack #790
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
Comments
Seems like webpack isn't detecting that hiredis is an optional dependency of node_redis. |
What is your webpack config like? I found an interesting article showing how you should only package your own code and leave anything in |
Closing this as there was no further response and it's not an issue with node-redis |
I have the same issue; webpack only seems to fail with node_redis (i'm using webpack successfully to package the rest of my backend using webpack-node-externals to skip node_module deps).
@blainsmith my config here:
|
Experiencing the same thing here. Other dependencies are resolved. The dev script works, the build:dev script fails. Same webpack.config.js. Scripts
Deps
Build error
|
Had the same error, and got it working by borrowing the solution from here. So the relevant snippet in
And also I created the file
|
Simple solution without a hack |
Seeing as hiredis is an optional dependency, and I don't want to install unnecessary dependencies, but I also don't want to hack in aliases, the simplest solution is to utilize webpack.IgnorePlugin(). Add to webpack.config.js
|
I am getting the following error when building with webpack:
I do not want to install hiredis as a depency. What solution do I have?
The text was updated successfully, but these errors were encountered: