planetscale / beam

A simple message board for your organization or project
https://planetscale.com/blog/introducing-beam
MIT License
2.06k stars 141 forks source link

version upgrades and trpc v10 syntax #87

Closed thejessewinton closed 1 year ago

thejessewinton commented 1 year ago

This PR is a combined PR from two that I made; all changes are reflected here.

What's Changed

Updated tRPC syntax to v10

Upgraded versions of multiple packages to bring beam up-to-date

I have not had the ability to test all of these updates in a live environment, so please hit me back with feedback/changes.

vercel[bot] commented 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.

jasonlong commented 1 year ago

@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:

thejessewinton commented 1 year ago

@jasonlong you got it, glad I could help out!

vercel[bot] commented 1 year ago

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

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

@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?

thejessewinton commented 1 year ago

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.