Help! CDK Deployment Fails with 'Corrupted Dependencies' Warning for Supabase

April 30, 2025 2 answers
Asked by weather-vane repair
Hey everyone! I'm dealing with a puzzling issue while working on my web app's AWS deployment. The backend is in TypeScript, and I'm using Lambda Functions in a serverless setup with API Gateway as the REST endpoint and CDK for deployment. This morning, when I tried to run `cdk synth`, I was hit with a strange error regarding the version "^2.45.2" of `supabase/supabase-js`. It's showing up as invalid, and I see a warning in the logs saying that `supabase/supabase-js` and its dependencies are "corrupted." I've double-checked the SHA-512 hashes in my `node_modules`, `package-lock.json`, and the version from npm, and they all match up perfectly, so corruption seems unlikely. I'm wondering if this could stem from: * Recent changes in how Lambda validates dependencies, * A version mismatch between Lambda and Supabase, * Or a problem with my local Docker setup (I'm using Docker Desktop on Mac). Has anyone else run into this issue? Any suggestions on where I might start troubleshooting? Thanks in advance!

Answers

2bit.shift
Have you double-checked that the hashes are accurate? I once faced something similar where I accidentally modified my `package-lock.json` during a find and replace. Itโ€™s worth deleting it and regenerating to see if that helps!
Reply to this answer
INWARD_swing
It might be a glitch in your Docker setup. If you've confirmed that all the hashes are correct, consider running the build in a clean Docker container to rule out any local issues.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions