steven-tey / precedent

An opinionated collection of components, hooks, and utilities for your Next.js project.
https://precedent.dev
MIT License
4.65k stars 406 forks source link

Build error with no changes #42

Closed talbertherndon closed 1 year ago

talbertherndon commented 1 year ago

Not sure if this is my issue but when I tried to do "npm run build" , I get this error:

builderror

talbertherndon commented 1 year ago

Found fix here.

This happens on Windows, but not when I tried to reproduce it on codesandbox.io.

It became a problem starting with 13.3.1-canary.6 and is still broken in 13.3.1-canary.16 Builds without problems on 13.3.1-canary.5

https://github.com/vercel/next.js/issues/48603#issue-1675747494

talbertherndon commented 1 year ago

This actually caused more errors during the Vercel deploy process.

  1. By default it used pnpm-lock.yaml file , you need to add an override command to npm install -f

overridesavce

  1. Add the -f because there will be conflicts with the next and next-auth versioning, after that you should be good!