Skip to content

fix: move @tanstack/react-query to devDependencies#122

Open
mstrivens wants to merge 1 commit intoStackOneHQ:mainfrom
mstrivens:fix/move-react-query-to-dev-dependencies
Open

fix: move @tanstack/react-query to devDependencies#122
mstrivens wants to merge 1 commit intoStackOneHQ:mainfrom
mstrivens:fix/move-react-query-to-dev-dependencies

Conversation

@mstrivens
Copy link
Copy Markdown

@mstrivens mstrivens commented Mar 30, 2026

React-query is bundled into the dist output (not externalized in rollup.config.mjs), so consumers don't need it in their dependency tree.

Having it as a regular dependency causes pnpm to hoist query-core@5, breaking type resolution for projects using react-query v4.

Fixes #5663


Summary by cubic

Moved @tanstack/react-query from dependencies to devDependencies because it’s bundled in the dist and not required by consumers. This prevents pnpm from hoisting query-core@5 and fixes type resolution for projects using @tanstack/react-query v4.

Written for commit 60d2e98. Summary will update on new commits.

React-query is bundled into the dist output (not externalized in
rollup.config.mjs), so consumers don't need it in their dependency tree.

Having it as a regular dependency causes pnpm to hoist query-core@5,
breaking type resolution for projects using react-query v4.

Fixes #5663

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 30, 2026 09:30
Copy link
Copy Markdown

@claude claude bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@mstrivens mstrivens requested review from adefreitas and removed request for Copilot March 30, 2026 09:30
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

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

Successfully merging this pull request may close these issues.

1 participant