Skip to content

'unsetMarker' resolves to a type-only declaration and must be imported using a type-only import #1405

@NatoBoram

Description

@NatoBoram

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.

image

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions