Skip to content
Source
Sign inSign up
TanStack/query

query-devtools package error in 5.0.0-alpha.87 #5749

Send to my agent
ClosedJungzl(GitHub profile, opens in a new tab) opened this issue 7 comments

Describe the bug

latest version(5.0.0-alpha.87) @tanstack/react-query-devtools not display and throw errors

Your minimal, reproducible example

https://codesandbox.io/p/sandbox/dazzling-cookies-kn8n82?file=%2Fsrc%2Fmain.tsx%3A2%2C41

Steps to reproduce

  1. run dev
  2. open browser devtools

Expected behavior

no errors, display correctly

How often does this bug happen?

Every time

Screenshots or Videos

image

Platform

  • OS: windows 10
  • Browser: FF && Chrome latest

Tanstack Query adapter

react-query

TanStack Query version

5.0.0-alpha.87

TypeScript version

5.1.6

Additional context

No response

  1. BTW, v5.0.0-alpha.86 is working

  2. Must be related to the bundling changes. @lachlancollins FYI

  3. Also tagging @ardeora since this seems like it's the query-devtools package! I'll have a chance to look at it shortly.

  4. @ardeora this also doesn't work in svelte-query devtools. It seems like the index.cjs file bundles everything internally including _tmpl$23, while the index.js and index.jsx files split their imports. I can undo this by adding splitting: false, but I think splitting is needed for the lazy loading? nevermind, this didn't work.

  5. lachlancollins(GitHub profile, opens in a new tab) added labelspackage: query-devtools

  6. @lachlancollins Yeah that wont work and we need the code splitting anyway. I took a look at this and looks like the esbuild plugin is failing on packaging the solid-js dependencies correctly. The template function specifically is not correctly configured. I'm taking a look at how to get this fixed

  7. @ardeora I merged this PR to update tsup (7.1.0) and esbuild-plugin-solid (0.5.0), I'll see if updating this works.

    EDIT: No change :(

  8. This issue has now been fixed in alpha.89 Please take a look at the updated sandbox here

Sign in to join this conversation.