Next 13.4.1 Builds Fine On Local System But Fails On Vercel
pastes | VQwVAtfxMv
A paste containing 247 lines of plaintext.
14 Replies
are you using
useMemo
in a server component?Nope
It errors in every single page
@Brendonovich
yeah idk
Anything being used/shared between all these pages that could hint at the problem?
Double check these hints:
https://nextjs.org/docs/messages/prerender-error
That's used by all the components in my ui package
But why would it build and start locally fine but error on vercel
It’s fixed in newer Next versions
I have next 13.4.1
Very strange
GitHub
Bug: Vercel deployment results in TypeError: Cannot read properties...
Provide environment information System: OS: macOS 11.6.1 CPU: (8) arm64 Apple M1 Memory: 112.23 MB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 18.13.0 - /usr/local/bin/node Yarn: 1.22.17 - ~/....
It sounds exactly like this
Which has been fixed upstream
Yeah I've come there a few times
What should I do?
Try to reproduce it in a new app
Figure out which package is causing it
Open an issue