Gold240sx
Explore posts from serversStripe / Payload CMS integration...
I'm trying to configure a next.js project with both Stripe and Payload.
Stripe needs access to table header columns id. If i do Postgres, it forces a header column name of xata_id. Payload requires a Postgres enabled DB. I've gotten a schema to work perfectly via Neon, but I'm trying to use Xata as my db. I've gotten past all the "malformed schema file" issues and now it's just giving me one of two errors. Either the migration errors out or theres a runtime error when requesting data from Payload. I'm initiating brand new DB's as such:
When I try to apply the above migration into the xata main branch, it says:
So I Changed the colums with id to xata_id and set up a db with Postgres set to false. The migration worked flawlessly, but there is now error when i run the app and it pulls data from Payload.
Below is the Schema file. @NiCK (My friend)
12 replies
Xata Starter Guide Next.JS trouble
Just following allong with the Getting Started with Next.js and Xata guide and I'm getting this error:
on the step where I'm replacing the content in the home page here:
I'm getting a TS error saying: "Property 'db' does not exist on type 'XataClient'.ts(2339)" and also in my xata.ts file autogenerated, I'm getting the errors: "Cannot find module
or its corresponding type declarations." and Cannot find module 'npm:@xata.io/client@latest' or its corresponding type declarations.
"
2 replies