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

useQwikTable(options) causes vite to crash in dev mode #5455

Open
2 tasks done
thejanasatan opened this issue Mar 30, 2024 · 5 comments
Open
2 tasks done

useQwikTable(options) causes vite to crash in dev mode #5455

thejanasatan opened this issue Mar 30, 2024 · 5 comments

Comments

@thejanasatan
Copy link

thejanasatan commented Mar 30, 2024

TanStack Table version

v8.15.3

Framework/Library version

Qwik 1.4.5

Describe the bug and the steps to reproduce it

Tried using @tanstack/qwik-table in my hobby Qwik/Qwik City project. Vite throws the following error and crashes.

QWIK ERROR Code(20) https://github.com/BuilderIO/qwik/blob/main/packages/qwik/src/core/error/error.ts#L28 Error: Code(20) https://github.com/BuilderIO/qwik/blob/main/packages/qwik/src/core/error/error.ts#L28

Following the Github link above, it looks related to an incorrect use of use* hooks. Linked docs: https://qwik.dev/docs/components/tasks/#use-method-rules

I've attached a Stackblitz environment reproducing the issue.

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

https://stackblitz.com/edit/vitejs-vite-r68rwq?file=src%2Froutes%2Findex.tsx

Screenshots or Videos (Optional)

No response

Do you intend to try to help solve this bug with your own PR?

No, because I do not know how

Terms & Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
@thejanasatan thejanasatan changed the title useQwikTable(options) causes a vite to crash in dev mode useQwikTable(options) causes vite to crash in dev mode Mar 30, 2024
@thejanasatan
Copy link
Author

One more piece of information - I tried copy-pasting the hook from Github, and it's now working from my copy of the code. Perhaps the issue is with the build? Like something with the Rollup config?

@KevinVandy
Copy link
Member

Does this only happen in Qwik City?

@imMadsen
Copy link

imMadsen commented Apr 4, 2024

No, I tested it using the component library which does not use Qwik City and got the same issue :(

@yigsvnsla
Copy link

Does this only happen in Qwik City?

I also try to copy and paste the hook inside my project. and it seems to be working stably...

@KevinVandy
Copy link
Member

So if I understand correctly, we're only able to currently support a TanStack Qwik Table adapter with certain vite settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants