Error occurred prerendering page "/docs-og/image.png" when trying to run pnpm run build #1360
Replies: 4 comments 1 reply
-
Hmm cannot not reproduce the error, the error is from Even if it doesn't work, you can also configure OG image manually like in normal Next.js apps: https://nextjs.org/docs/app/api-reference/functions/image-response |
Beta Was this translation helpful? Give feedback.
-
I might not be understanding. If you don't use Also, I've just run the same repro commands on my MacBook Air M1, and it work's perfectly. This could be windows-specific as I've also just tested on a Windows server I have on my home-server, with fresh install of Git, pnpm, node, and it's showing the same error: |
Beta Was this translation helpful? Give feedback.
-
See the line
It's somewhere in the bundled package, not sure if we can even fix it from user land. Maybe you can replace the |
Beta Was this translation helpful? Give feedback.
-
Does it help to know that the file printed in the stacktrace is trying to load a font? |
Beta Was this translation helpful? Give feedback.
-
Repro
https://github.com/pippinmole/fumadocs-docs-og
Steps to reproduce
git clone [email protected]:pippinmole/fumadocs-docs-og.git
cd fumadocs-docs-og
pnpm install
pnpm run build
Error
What should happen
The nextjs project successfully builds
Additional info
What's weird is that it builds successfully on Vercel
Beta Was this translation helpful? Give feedback.
All reactions