Skip to content

Devtools not being excluded in production (v5/alpha) #5680

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

Closed
kaumac opened this issue Jul 6, 2023 · 1 comment
Closed

Devtools not being excluded in production (v5/alpha) #5680

kaumac opened this issue Jul 6, 2023 · 1 comment
Labels
duplicate This issue or pull request already exists package: react-query-devtools v5

Comments

@kaumac
Copy link

kaumac commented Jul 6, 2023

Describe the bug

I'm using the alpha (v5) version of tanstack query on a side project and I have added the devtools. The dependency ("@tanstack/react-query-devtools": "^5.0.0-alpha.72",) is installed as a dev dependency (also tried as normal dependency). I'm using it on a NextJS v13 app generated with created-next-app.
The app is being deployed to Vercel.

The same setup but using react-query v4 was working and deploying to production without a problem.

Your minimal, reproducible example

https://github.com/kaumac/rank-tt

Steps to reproduce

Running npm run build should trigger the error

Expected behavior

As a user, I expect to not have the devtools as part of the production bundle, but its happening and breaking production builds.

How often does this bug happen?

Every time

Screenshots or Videos

Captura de Tela 2023-07-06 às 03 04 30

Platform

Mac OS 12.6

Tanstack Query adapter

react-query

TanStack Query version

5.0.0-alpha.72

TypeScript version

5.1.5

Additional context

No response

@TkDodo
Copy link
Collaborator

TkDodo commented Jul 14, 2023

seems to be the same error as in this issue:

so let's track it there

@TkDodo TkDodo closed this as not planned Won't fix, can't repro, duplicate, stale Jul 14, 2023
@TkDodo TkDodo added duplicate This issue or pull request already exists v5 labels Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists package: react-query-devtools v5
Projects
None yet
Development

No branches or pull requests

3 participants