Help! CDK Deployment Fails with ‘Corrupted Dependencies’ Warning for Supabase

0
0
Asked By TechWizard92 On

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!

2 Answers

Answered By DevGuru77 On

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.

Answered By CodeMaster55 On

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!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.