-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serverless CLI: Image Optimization Lambda seems to try using inexistent __dirname,"./threadChild.js" #373
Comments
2.3.6 is broken with image opt, you can downgrade to 2.3.5 or set |
Thanks for replying, and I must say I'm very much amused by this piece of software, and I've learned a lot from it. I should add that after downgrading sharp to 0.32.6 and setting the variable as building |
What next version are you currently on? |
Thanks for helping. I can confirm after a couple tests that this exact line is not called anymore by changing the sharp version to 0.32.6. Many thanks |
open-next version: 2.3.6
System: Linux Mint Linux 5.15.0-88-generic #98-Ubuntu SMP Mon Oct 2 15:18:56 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Deploy:
I'm using serverless CLI. I may be missing something, maybe SST would've add the missing file before zipping it
My full serverless.yml: #32 (comment)
Description:
It seems that the generated "image-optimization" lambda is trying to import the file __dirname,"./threadChild.js", which was not generated
This is the cloudwatch log error I'm getting:
The following were produced by
yarn open-next build
open-next version: 2.3.6
The text was updated successfully, but these errors were encountered: