CrookedCatshark173
Profile pages help search engines and AI tools identify an individual contributor, their expertise, and their most relevant discussions.
Why Does Node.js Crash When Using Express.js with MongoDB Atlas on AWS Lambda Function - Error: 'Cannot read property 'id' of undefined'
I'm running into a weird issue with my Node.js app on AWS Lambda. I'm using Express.js to handle routes and MongoDB Atlas as my DB. Whenever I try to query the DB, the lambda function crashes with an error that says 'Cannot read property 'id' of undefined'. I've checked my code a million times, and I'm pretty sure it's not the source of the problem. Has anyone else seen this error before? I'm using the latest version of Node.js and Express.js, and I've even tried downgrading to an older version of MongoDB driver. Still, no luck. Any ideas would be greatly appreciated.
Stuck on responsive design
I'm trying to get this website to look decent on mobile devices but the layout is all over the place. I've been using media queries to adjust the sizing and positioning of elements, but it's just not translating well. Has anyone else had trouble with this? I feel like I'm missing something obvious. I've been staring at this code for hours and I'm about to pull my hair out. I've tried using flexbox and grid, but nothing seems to be working like it should. Any advice would be greatly appreciated at this point.