P
Prisma7mo ago
d4r1us

Deno guide not working

I'm new with Prisma and i worked a lot with Deno recently so i decided to use it with Prisma. I was following this guide https://www.prisma.io/docs/orm/prisma-client/deployment/edge/deploy-to-deno-deploy from the official documentation but as soon i run the first command to generate the base folder structure, it crashes because deno complains about the missing "npm:" / "node:" prefixes for all the imports in a file inside the dist folder of the @prisma/cli-init package.. I searched online but no one seems to be able to reproduce this. Can someone check it is there is a bug? deno run --reload -A npm:prisma@latest init --db Error: Relative import path "get-tsconfig" not prefixed with / or ./ or ../ and not in import map from "file:///var/folders/g3/vj3b0pt928gc6vxvlgsghlx80000gn/T/@prisma/cli-init@latest-1748210400000/node_modules/@prisma/cli-init/dist/index.js" at file:///var/folders/g3/vj3b0pt928gc6vxvlgsghlx80000gn/T/@prisma/cli-init@latest-1748210400000/node_modules/@prisma/cli-init/dist/index.js:23:29
Deploy to Deno Deploy | Prisma Documentation
Learn how to deploy a TypeScript application to Deno Deploy.
2 Replies
Prisma AI Help
Prisma AI Help7mo ago
You're in no rush, so we'll let a dev step in. Enjoy your coffee, or drop into #ask-ai if you get antsy for a second opinion!
d4r1us
d4r1usOP7mo ago
Fixed by remapping all the imports of @prisma/cli-init in my deno.json to npm/jsr/node. Have a good day!

Did you find this page helpful?