-
-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
TanStack Devtools version
v0.9.5
Framework/Library version
React v19.2.3, Rspack 1.7.1
Describe the bug and the steps to reproduce it
Using TanStack Devtools in a Rspack/Rsbuild app triggers:
Critical dependency: Accessing import.meta directly is unsupported (only property access or destructuring is supported)
Repro steps
- Create a React app with Rsbuild/Rspack.
- Install
@tanstack/react-devtools. - Render devtools in app root.
- Run dev/build.
- Observe warning from
@tanstack/devtools.
Expected
No critical dependency warning in Rspack.
Actual
Rspack warns that import.meta is accessed directly.
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
https://github.com/Nsttt/tanstack-devtools-rspack-repro
Screenshots or Videos (Optional)
No response
Do you intend to try to help solve this bug with your own PR?
Yes, I am also opening a PR that solves the problem along side this issue
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels