Help! CDK Deployment Failing with ‘Corrupted Dependencies’ Warning for Supabase-js

0
0
Asked By TechWiz123 On

Hey folks, I'm running into a strange issue with my web app deployment. I've got a backend set up with TypeScript on AWS, using Lambda Functions and API Gateway for the REST layer, all managed through the Cloud Development Kit (CDK). This morning when I executed `cdk synth`, I got a warning about the version "^2.45.2" of `supabase/supabase-js` in my Lambda function failing due to 'corrupted dependencies'. I've double-checked the SHA-512 hashes across `node_modules`, `package-lock.json`, and the npm package, and they all match up, which makes it seem like they're not actually corrupted. I'm trying to figure out if this issue could stem from a new way Lambda checks dependencies, a version mismatch with Supabase, or something going wrong with my local Docker setup on Mac. Has anyone faced something similar? Where do you think I should start troubleshooting?

2 Answers

Answered By DevGuru42 On

I hear you; this sounds frustrating. Sometimes, cleaning the npm cache can do wonders. Try running `npm cache clean --force` and then reinstall your dependencies. It could resolve any lingering issues with your packages.

Answered By CodeNinja88 On

Hey! Are you sure those hashes are spot on? Last time this occurred for me, I accidentally messed up my `package-lock.json` during a find-and-replace. Have you tried deleting it and then regenerating? It might help clear things up.

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.