chen-rn / CUA

(no longer maintained) create-universal-app(CUA) is an opinionated template for creating fullstack universal apps (Expo, Next, tRPC, Prisma, Clerk, Solito, Tamagui)

Home Page:https://cua-demo.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot build nextjs app/deploy to vercel.

chen-rn opened this issue · comments

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!

commented

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!