Typescript error when importing the planetscale-drizzle db instance.
my db is hosted on planetscale and im trying to do the setup as explained in the drizzle docs but when I import db instance i get the following error.
My code
Error
tsConfig
4 Replies
Reviving this thread because I'm also experiencing this issue and haven't found a way to fix it
Any luck?
No, I stopped working on this! It was a hustle
Hopefully this video is helpful: https://www.youtube.com/watch?v=d7XJjQesDtE&ab_channel=DaveGray
Dave Gray
YouTube
Build a Random Quote Machine with Nextjs, PlanetScale MySQL, & Driz...
Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap
Build a random quote machine with Nextjs, PlanetScale MySQL, & Drizzle ORM. In this tutorial, we'll set up a MySQL database on PlanetScale, connect to and query the database with Drizzle ORM, and build a Next.js frontend and API routes.
š© Subscribe ā https://bit.ly/3n...
Also it is asking for a dynamic important (kinda strange but also looks like you are windows)
- recommend learning WSL on windows