Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tzdesign opened this issue Jul 24, 2024 · 0 comments
Labels
STATUS-1: needs triage New issue which needs to be triaged TYPE: bug Something isn't working

Comments

@tzdesign
Copy link
Contributor

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

@tzdesign tzdesign added STATUS-1: needs triage New issue which needs to be triaged TYPE: bug Something isn't working labels Jul 24, 2024
tzdesign pushed a commit to tzdesign/qwik that referenced this issue Jul 24, 2024
Typescript crashes because any could be infinite

fix QwikDev#6719
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
STATUS-1: needs triage New issue which needs to be triaged TYPE: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant