❌ Invalid environment variables
I recently created a new t3 application using the pnpm create t3-app@latest command. After setting up all the necessary environment variables, I was able to successfully start the development server using pnpm dev. The application was functioning as expected, with both the database and authentication working properly.
However, when I attempted to use the pnpm drizzle-kit studio command, I encountered an issue. The attached image provides a visual representation of the problem.
I would appreciate any assistance in resolving this issue. Thank you.
6 Replies
Drizzle-kit does not work with t3-env at the moment because of esm issues. I ran into the same problem a while and it's still not resolved: https://discord.com/channels/966627436387266600/1117389501027844176/1117762215353790484
Now I understand that the problem is due to compatibility issues between drizzle-kit and t3-env. I appreciate your information and the link to the related issue. Thank you.
Same issue but i'm not using Drizzle
Thanks for posting this @vitoananta3 ! I just run into the same problem myself as well.
try adding
"db:studio": "dotenv drizzle-kit studio"
to commands in package.jsonhello Christopher pls return to youtube