-
-
Notifications
You must be signed in to change notification settings - Fork 126
Closed
Labels
Milestone
Description
Description and expected behavior
A clear and concise description of what the bug is and what's the expected behavior.
When using the TRPC plugin, it generates a file at routers/index.ts with this line:
import {
unsetMarker,
type AnyRootConfig,
type CreateRouterInner,
type ProcedureBuilder,
type ProcedureParams,
type ProcedureRouterRecord,
} from "@trpc/server"This is associated with an error message:
'unsetMarker' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.
To fix this, we can write it like this:
import type {
AnyRootConfig,
CreateRouterInner,
ProcedureBuilder,
ProcedureParams,
ProcedureRouterRecord,
unsetMarker,
} from "@trpc/server"Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
- ZenStack version: "2.0.2"
- Prisma version: "5.13.0"
- Database type: Postgresql
Additional context
Add any other context about the problem here.
In the next version of trpc, these types are going to be moved/removed into a "unstable do not import" folder
