Failed to parse config file at "./prisma.config.ts" when using an adapter
I followed this guide exactly: https://www.prisma.io/docs/guides/cloudflare-d1
and on step 4.3, I get the error:
Failed to parse syntax of config file at "./prisma.config.ts"
I tried changing the env variables to hard coded strings to see if that was the issue, but same error.
How to use Prisma ORM with Cloudflare D1 | Prisma Documentation
Learn how to use Prisma ORM with Cloudflare D1
2 Replies
You decided to hold for human wisdom. We'll chime in soon! Meanwhile,
#ask-ai is there if you need a quick second opinion.I tried using both 6.11.0 and 6.19.0
actually, just tried 6.11.0 with this and it worked:
but this doesent work no matter what:
Seems like the fix it to add:
engine: "js",