chen-rn / CUA

(deprecateed) create-universal-app(CUA) is an opinionated template for creating fullstack universal apps (Expo, Next, tRPC, Prisma, Clerk, Solito, Tamagui)
https://cua-demo.vercel.app
MIT License
1.02k stars 67 forks source link

Cannot build nextjs app/deploy to vercel. #8

Closed chen-rn closed 1 year ago

chen-rn commented 1 year ago

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-rn commented 1 year ago

I seem to have made it work https://cua-next-delta.vercel.app/

Here's what was changed

  1. we are now tracking yarn.lock
  2. 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)
  3. 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!