-
Notifications
You must be signed in to change notification settings - Fork 71
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
Error: Cannot find module 'protobufjs' #2812
Comments
@lounsbrough Hi, thanks for opening the issue. |
@avifenesh, Thanks for the quick reply. I will try to make a minimal repro example that I can share here. |
@avifenesh - sorry I just finally got back to this issue. I threw a reproduction up here: https://github.com/lounsbrough/valkey-issue-repro/blob/issue-2812/README.md It only happens for me on Node 22, Node 20 works fine. Note also that I created this outside of Docker, so that does not appear to be the issue in my case. Let me know if you can also reproduce the issue. Thanks for your help. |
@lounsbrough yes pnpm can explain it, since our CI run on node alpine latest as well, and teat the packages that been released, and i did very simple app without any workarounds so it was supposed to be reproduce. |
@avifenesh please consider adding more details to installation instructions and/or update troubleshooting section |
I will do it when finishing the research and have a clear understanding, currently those are just assumptions. |
@lounsbrough Sorry about the delay, had some other duties this week. |
No worries. Yes we copy the pnpm-lock.yml file during the build, and the lock file also did not change locally between installs when I was experiencing the issue. I can mess with it some more tomorrow and see if I find anything else out. |
So what I managed to see till now is that while not copying the lock, it's working. But - glide use optional dependencies, and for some reason |
@avifenesh - My team started using pnpm a while back because it is much faster than npm. This does feel more like a pnpm bug than a valkey-glide bug. We have a workaround for now, so I'll leave it up to you how much further to pursue this. Thanks for your effort looking into this. |
@lounsbrough since there's a workaround and it is not a blocker for you, we will not rush it as a patch. It worth opening issue to pnpm since the way they managing platform based optional dependencies end up very expensive, and it would be the same for every package use the same type of structure (for example SWC). I'll leave the issue open so we can go back to it with the fix. And we would love to get feedback from you and your team about glide, good or bad, as well as feature requests, issues etc. We have a discord channel for direct communication, if you need anything or have some feedback 🙏 |
Putting all the issues which are relevant to the restructuring under the latest issue on the topic and closing them. |
Describe the bug
When deploying an app on the latest Node alpine 22, I get an error
Error: Cannot find module 'protobufjs'
.Expected Behavior
I expect to get a functioning package that I can use to connect to Valkey in AWS.
Current Behavior
I get the error:
Error: Cannot find module 'protobufjs'
.Reproduction Steps
Build an image on Alpine Linux and then try to create a valkey client.
Possible Solution
No response
Additional Information/Context
No response
Client version used
1.2.0
Engine type and version
AWS Valkey 8.0
OS
Alpine Linux
Language
TypeScript
Language Version
Node 22
Cluster information
Not relevant
Logs
Error: Cannot find module 'protobufjs'
Other information
No response
The text was updated successfully, but these errors were encountered: