next-learn icon indicating copy to clipboard operation
next-learn copied to clipboard

Chapter 6 : pnpm issue data not seeding on vercel (does not show "connected" on vercel dashboard)

Open zaiiche opened this issue 1 year ago • 3 comments

I uncomment the app/seed/route file and run the pnpm command and get this error.

PS C:\Users\xero\start\dash> pnpm i @vercel/postgres
 WARN  6 deprecated subdependencies found: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Already up to date
Progress: resolved 250, reused 224, downloaded 0, added 0, done
 WARN  Issues with peer dependencies found
.
└─┬ next 15.0.0
  ├── ✕ unmet peer react@"^18.2.0 || 19.0.0-rc-65a56d0e-20241020": found 19.0.0-rc-cd22717c-20241013
  └── ✕ unmet peer react-dom@"^18.2.0 || 19.0.0-rc-65a56d0e-20241020": found 19.0.0-rc-cd22717c-20241013

Done in 2.8s

Then I go to vercel data tab for the project I just deployed but the tab wont let me click the drop downs.

If it helps, here is my github repo...

https://github.com/cbmastery/next_dash/blob/main/app/seed/route.ts

zaiiche avatar Nov 10 '24 13:11 zaiiche

You forgot to remove line 105 that is returning an empty object as json instead of calling the methods to seed the data return Response.json({});

razvanthered avatar Nov 10 '24 19:11 razvanthered

You forgot to remove line 105 that is returning an empty object as json instead of calling the methods to seed the data return Response.json({});

The error terminal is throwing me seems to suggest that id doesn't like version 19 of react because it is looking for 18.2 when I run pnpm i @vercel/postgres

zaiiche avatar Nov 10 '24 20:11 zaiiche

Try downgrading your react version in package.json to ^18.2.0 and then use pnpm i to refresh the modules

razvanthered avatar Nov 13 '24 16:11 razvanthered

You can also move to the general postgres JavaScript package (we will likely update here) which works with any Postgres provider.

Further, we just updated to React 19 stable, which will fix some of those warnings.

https://github.com/vercel/next-learn/pull/946

leerob avatar Dec 05 '24 21:12 leerob