timlrx / tailwind-nextjs-starter-blog

This is a Next.js, Tailwind CSS blogging starter template. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs.
https://tailwind-nextjs-starter-blog.vercel.app/
MIT License
8.45k stars 1.96k forks source link

TypeError: Cannot read properties of undefined (reading 'Client') #813

Closed Mimileo closed 8 months ago

Mimileo commented 8 months ago

Describe the bug After following vercel docs , this error is thrown. I'm unsure how to connect to a database with the configuration of this template. Has anyone resolved this? To Reproduce Steps to reproduce the behavior:

  1. Create and connect postgres database
  2. Copy credentials from postgres to local with: vercel env pull .env.development.local
  3. Create a table in your database with provided code

Expected behavior Run next dev to start your app locally Visit the route's path in your app: http://localhost:3000/api/create-pets-table { result: { command: "CREATE", fields: [], rowCount: null, rows: [], viaNeonFetch: true, }, }; Erro: Screenshots If applicable, add screenshots to help explain your problem.

Screenshot 2023-12-26 at 6 04 03 PM

System Info (if dev / build issue):

Browser Info (if display / formatting issue):

Additional context Add any other context about the problem here.

timlrx commented 8 months ago

Seems like some javascript / next error unrelated to the template. Please ask it on next.js page.