Closed thejessewinton closed 1 year ago
@thejessewinton is attempting to deploy a commit to the PlanetScale Team on Vercel.
A member of the Team first needs to authorize it.
@thejessewinton Thanks so much for the work you've done here. I apologize for the lack of response here. We're currently working to free up some resources to help oversee the maintenance of this repo. My expertise is more on the design side and I'm not the best person to review this work. Hold tight, we'll get to this soon :bow:
@jasonlong you got it, glad I could help out!
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated |
---|---|---|---|---|
beam | ❌ Failed (Inspect) | Mar 2, 2023 at 0:51AM (UTC) |
I know the build process isn't ideal currently since the Vercel account we're using is part of the PlanetScale org. In the meantime, I can help surface deployment errors.
[19:51:00.715] uncaughtException Error: Next.js requires react >= 18.2.0 to be installed.
[19:51:00.715] at Object.<anonymous> (/vercel/path0/node_modules/.pnpm/next@13.2.0_sfoxds7t5ydpegc3knd667wn6m/node_modules/next/dist/build/webpack-config.js:1797:11)
[19:51:00.715] at Module._compile (internal/modules/cjs/loader.js:1085:14)
[19:51:00.715] at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
[19:51:00.715] at Module.load (internal/modules/cjs/loader.js:950:32)
[19:51:00.716] at Function.Module._load (internal/modules/cjs/loader.js:790:12)
[19:51:00.716] at Module.require (internal/modules/cjs/loader.js:974:19)
[19:51:00.716] at require (internal/modules/cjs/helpers.js:101:18)
[19:51:00.716] at Object.<anonymous> (/vercel/path0/node_modules/.pnpm/next@13.2.0_sfoxds7t5ydpegc3knd667wn6m/node_modules/next/dist/build/webpack-build.js:12:46)
[19:51:00.716] at Module._compile (internal/modules/cjs/loader.js:1085:14)
[19:51:00.716] at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
[19:51:00.720] ELIFECYCLE Command failed with exit code 1.
[19:51:00.735] Error: Command "pnpm run build" exited with 1
[19:51:00.823] An error was thrown and it will end the deployment but the thrown error had no message body. Perhaps other parts of the log offer a clue.
@jasonlong very weird error, React version is fully current, and it’s not something I can replicate locally. Will keep doing some research, but was the error message any more verbose than that?
The only other thing I can think is possibly an outdated package-lock.json
. I'm going to use pnpm
, create a new lockfile and push.
This PR is a combined PR from two that I made; all changes are reflected here.
What's Changed
Updated tRPC syntax to v10
Better Typescript: the compiler is faster in v10, so it's doing a better job.
Different naming conventions: uses the current best practives from
create-t3-app
, specifically changing thetrpc
wrapper to be namedapi
. Query/mutation hooks are now called asapi.post.like.useMutation()
etc.Easier maintainability: along with faster TS, it puts the application in line with the current version of tRPC.
Upgraded versions of multiple packages to bring beam up-to-date
The package @instantish/mack, which was being used here, has been deprected, which would seem to be a part of the problem highlighted in issue #72. The new package that's recommended, @tryfabric/mack has been rewritten, moving away from
rehype
for parsing tomarked
, and has been updated here.Updated
next
,next-auth
,react
,react-dom
, and@radix-ui/react-tooltip
to fix peer dependency errors that were happening on build. This should also do the work of #75, updatingnext-auth
implementation in the code.Updated
prisma
and@prisma/client
and changed theschema.prisma
to reflect new features. This should serve to fix #81.I have not had the ability to test all of these updates in a live environment, so please hit me back with feedback/changes.