Closed aske02 closed 2 years ago
Push! Face same issue. Shouldn't be to hard to fix.
@aske02 @Westsaid Should be fixed in https://github.com/omar-dulaimi/prisma-trpc-generator/releases/tag/0.4.4
Also, feel free to star this project if you find it useful!
Bug description
It might just be my machine, but anyways. When running
npx prisma generate
I have the issue that the trpc-generator (with trpc-shield) makes an invalid include inrouters/helpers/createRouter.ts
. The line that is outputted will use \ as separators which I believe causes an issue where my import for example will look like:import { permissions } from "X:\Gamer 2\test-npm\prisma/shield/shield"
when a path with \\ is expected.How to reproduce
routers/helpers/createRouter.ts
in your generated folderExpected behavior
The import path should include the correct path to shield permissions
Prisma information
Environment & setup
Prisma Version