Skip to content

[Bug] - Next.js / React Query - error type is unknown and causes a Typescript error #1062

@rcwestlake

Description

@rcwestlake

Description and expected behavior
A clear and concise description of what the bug is and what's the expected behavior.

Screenshots
Unknown type:
image
The hook:
image
Error:
image
If I switch to a ternary style, it still complains:
image

Environment (please complete the following information):

  • ZenStack version: [e.g., 1.0.0-alpha.50]
"@zenstackhq/runtime": "^1.9.0",
"@zenstackhq/server": "^1.9.0",
"@zenstackhq/tanstack-query": "^1.9.0",
"zenstack": "1.9.0"
  • Prisma version: "^5.10.2"
  • Database type: Postgresql

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions