Error: Cannot find module './image-optimizer'
from serverless functions (12.0.11-canary.10)
#34134
Labels
Output (export/standalone)
Related to the the output option in `next.config.js`.
Run
next info
(available from version 12.0.8 and up)What version of Next.js are you using?
12.0.11-canary.10
What version of Node.js are you using?
16.13.2 (14.x on Vercel)
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
Vercel
Describe the Bug
After upgrading from 12.0.11-canary.9 to canary.10, I'm getting 500 errors from many of my serverless functions (and SSR pages) and this exception in the logs:
I assume this has to do with #34075 ? I'm not doing any image processing in these functions but maybe I'm doing something else crazy and unsupported... Source code and logs are linked to below.
Thanks in advance!
Expected Behavior
No
image-optimizer
errors where images aren't being optimized would be my first thought, but not familiar enough with what's going on in #34075 to make a more educated guess... 😬To Reproduce
My source code is public and a good example is at:
https://github.com/jakejarvis/jarv.is/blob/dependabot/npm_and_yarn/next-12.0.11-canary.10/pages/feed.xml.ts
I believe my Vercel logs are public too, if you try to request this page at: https://jarvis-git-dependabot-npmandyarnnext-12011-canary10-jakejarvis.vercel.app/feed.xml
...and view the logs at https://vercel.com/jakejarvis/jarvis/AG74op91Fv9CnaHZDeJETjvg8XtS/functions
edit: Forgot to add that I'm not getting this error locally with
next dev
, which makes sense but thought I should mention it.The text was updated successfully, but these errors were encountered: