Open PurpleTape opened 3 months ago
I am facing exactly this same problem. I would love to know how to fix it, since I want to use drizzle with astro
Facing the same issue
Pure fastify based backend api, so I'm not sure that this is related to vite
I have type: 'module'
in package.json
and using import.meta.dirname
for building relative path to my .env
file
I am using drizzle-kit in my project with the Vite development server. At the same time, the schema files are located in different directories of my project, inside the src folder.
When I try to execute the drizzle-kit pull or drizzle-kit generate command, an error occurs:
This is most likely due to the fact that when it try to run schema files, files containing Vite-specific code are run too.
Please specify is there a way to fix this?
Thanks!