As of two days ago, all Netlify functions that use aws-sdk stopped working with the error: Runtime.ImportModuleError: Error: Cannot find module ‘aws-sdk’
Before that, the website(s) were working fine and rolling back to an older deploy fixes the issue for the moment. Also, building the website locally and pushing it up via Netlify CLI works as expected.
I’m using a monorepo and two independent websites (based on GatsbyJS and NextJS) show the same error. The dependency “aws-sdk” is installed in the root package.json for each web app (no separate functions package.json).
What I tried so far:
Roll back aws-sdk to a version that is younger than 2 days ago (and remove the carrot)