Cannot build nextjs app/deploy to vercel.
chen-rn opened this issue · comments
chen commented
Cannot build Next app atm, even locally.
➤ YN0000: Error occurred prerendering page "/user/[id]". Read more: https://nextjs.org/docs/messages/prerender-error
Looking into it right now!
chen commented
I seem to have made it work
https://cua-next-delta.vercel.app/
Here's what was changed
- we are now tracking yarn.lock
- package.json name in /apps/next is the same as your folder name, aka-> changed it from next-app to next (do yarn install after the change)
- make sure vercel is using yarn 3(override the vercel install script with
yarn set version stable && yarn install
)
I also removed the post-install scripts that were in the tamagui starter template.
Will update the docs!