Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[🐞] fieldErrors - Type instantiation is excessively deep and possibly infinite. #6719

@tzdesign

Description

@tzdesign

Which component is affected?

Qwik City (routing)

Describe the bug

I implemented this feature myself, turns out my type is too complex for typescript and not sure how to fix it.
My plan is to check this out later, I think it's connected with any in zod.

routeAction$ with complex zod ends up in the typescript message:

Type instantiation is excessively deep and possibly infinite.

See https://stackblitz.com/edit/qwik-starter-ps6npq?file=src%2Froutes%2Findex.tsx

Reproduction

https://stackblitz.com/edit/qwik-starter-ps6npq?file=src%2Froutes%2Findex.tsx

Steps to reproduce

No response

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    @builder.io/qwik: ^1.7.1 => 1.7.1 
    @builder.io/qwik-city: ^1.7.1 => 1.7.1 
    typescript: 5.3.3 => 5.3.3 
    undici: 5.28.2 => 5.28.2 
    vite: 4.5.2 => 4.5.2

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    TYPE: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions