Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions examples/angular/auto-refetching/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@
},
"private": true,
"dependencies": {
"@angular/common": "^20.0.0",
"@angular/compiler": "^20.0.0",
"@angular/core": "^20.0.0",
"@angular/platform-browser": "^20.0.0",
"@angular/common": "^20.3.6",
"@angular/compiler": "^20.3.6",
"@angular/core": "^20.3.6",
"@angular/platform-browser": "^20.3.6",
"@tanstack/angular-query-experimental": "^5.90.5",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"zone.js": "0.15.0"
"zone.js": "0.15.1"
},
"devDependencies": {
"@angular/build": "^20.0.0",
"@angular/cli": "^20.0.0",
"@angular/compiler-cli": "^20.0.0",
"@angular/build": "^20.3.6",
"@angular/cli": "^20.3.6",
"@angular/compiler-cli": "^20.3.6",
"typescript": "5.8.3"
}
}
16 changes: 8 additions & 8 deletions examples/angular/basic-persister/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@
},
"private": true,
"dependencies": {
"@angular/common": "^20.0.0",
"@angular/compiler": "^20.0.0",
"@angular/core": "^20.0.0",
"@angular/platform-browser": "^20.0.0",
"@angular/common": "^20.3.6",
"@angular/compiler": "^20.3.6",
"@angular/core": "^20.3.6",
"@angular/platform-browser": "^20.3.6",
"@tanstack/angular-query-experimental": "^5.90.5",
"@tanstack/angular-query-persist-client": "^5.62.12",
"@tanstack/query-async-storage-persister": "^5.90.7",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"zone.js": "0.15.0"
"zone.js": "0.15.1"
},
"devDependencies": {
"@angular/build": "^20.0.0",
"@angular/cli": "^20.0.0",
"@angular/compiler-cli": "^20.0.0",
"@angular/build": "^20.3.6",
"@angular/cli": "^20.3.6",
"@angular/compiler-cli": "^20.3.6",
"typescript": "5.8.3"
}
}
16 changes: 8 additions & 8 deletions examples/angular/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@
},
"private": true,
"dependencies": {
"@angular/common": "^20.0.0",
"@angular/compiler": "^20.0.0",
"@angular/core": "^20.0.0",
"@angular/platform-browser": "^20.0.0",
"@angular/common": "^20.3.6",
"@angular/compiler": "^20.3.6",
"@angular/core": "^20.3.6",
"@angular/platform-browser": "^20.3.6",
"@tanstack/angular-query-experimental": "^5.90.5",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"zone.js": "0.15.0"
"zone.js": "0.15.1"
},
"devDependencies": {
"@angular/build": "^20.0.0",
"@angular/cli": "^20.0.0",
"@angular/compiler-cli": "^20.0.0",
"@angular/build": "^20.3.6",
"@angular/cli": "^20.3.6",
"@angular/compiler-cli": "^20.3.6",
"typescript": "5.8.3"
}
}
18 changes: 9 additions & 9 deletions examples/angular/devtools-panel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
},
"private": true,
"dependencies": {
"@angular/common": "^20.0.0",
"@angular/compiler": "^20.0.0",
"@angular/core": "^20.0.0",
"@angular/platform-browser": "^20.0.0",
"@angular/router": "^20.0.0",
"@angular/common": "^20.3.6",
"@angular/compiler": "^20.3.6",
"@angular/core": "^20.3.6",
"@angular/platform-browser": "^20.3.6",
"@angular/router": "^20.3.6",
"@tanstack/angular-query-experimental": "^5.90.5",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"zone.js": "0.15.0"
"zone.js": "0.15.1"
},
"devDependencies": {
"@angular/build": "^20.0.0",
"@angular/cli": "^20.0.0",
"@angular/compiler-cli": "^20.0.0",
"@angular/build": "^20.3.6",
"@angular/cli": "^20.3.6",
"@angular/compiler-cli": "^20.3.6",
"typescript": "5.8.3"
}
}
16 changes: 8 additions & 8 deletions examples/angular/infinite-query-with-max-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@
"watch": "ng build --watch --configuration development"
},
"dependencies": {
"@angular/common": "^20.0.0",
"@angular/compiler": "^20.0.0",
"@angular/core": "^20.0.0",
"@angular/platform-browser": "^20.0.0",
"@angular/common": "^20.3.6",
"@angular/compiler": "^20.3.6",
"@angular/core": "^20.3.6",
"@angular/platform-browser": "^20.3.6",
"@tanstack/angular-query-experimental": "^5.90.5",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"zone.js": "0.15.0"
"zone.js": "0.15.1"
},
"devDependencies": {
"@angular/build": "^20.0.0",
"@angular/cli": "^20.0.0",
"@angular/compiler-cli": "^20.0.0",
"@angular/build": "^20.3.6",
"@angular/cli": "^20.3.6",
"@angular/compiler-cli": "^20.3.6",
"typescript": "5.8.3"
}
}
18 changes: 9 additions & 9 deletions examples/angular/optimistic-updates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
},
"private": true,
"dependencies": {
"@angular/common": "^20.0.0",
"@angular/compiler": "^20.0.0",
"@angular/core": "^20.0.0",
"@angular/forms": "^20.0.0",
"@angular/platform-browser": "^20.0.0",
"@angular/common": "^20.3.6",
"@angular/compiler": "^20.3.6",
"@angular/core": "^20.3.6",
"@angular/forms": "^20.3.6",
"@angular/platform-browser": "^20.3.6",
"@tanstack/angular-query-experimental": "^5.90.5",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"zone.js": "0.15.0"
"zone.js": "0.15.1"
},
"devDependencies": {
"@angular/build": "^20.0.0",
"@angular/cli": "^20.0.0",
"@angular/compiler-cli": "^20.0.0",
"@angular/build": "^20.3.6",
"@angular/cli": "^20.3.6",
"@angular/compiler-cli": "^20.3.6",
"typescript": "5.8.3"
}
}
16 changes: 8 additions & 8 deletions examples/angular/pagination/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@
"watch": "ng build --watch --configuration development"
},
"dependencies": {
"@angular/common": "^20.0.0",
"@angular/compiler": "^20.0.0",
"@angular/core": "^20.0.0",
"@angular/platform-browser": "^20.0.0",
"@angular/common": "^20.3.6",
"@angular/compiler": "^20.3.6",
"@angular/core": "^20.3.6",
"@angular/platform-browser": "^20.3.6",
"@tanstack/angular-query-experimental": "^5.90.5",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"zone.js": "0.15.0"
"zone.js": "0.15.1"
},
"devDependencies": {
"@angular/build": "^20.0.0",
"@angular/cli": "^20.0.0",
"@angular/compiler-cli": "^20.0.0",
"@angular/build": "^20.3.6",
"@angular/cli": "^20.3.6",
"@angular/compiler-cli": "^20.3.6",
"typescript": "5.8.3"
}
}
18 changes: 9 additions & 9 deletions examples/angular/query-options-from-a-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
},
"private": true,
"dependencies": {
"@angular/common": "^20.0.0",
"@angular/compiler": "^20.0.0",
"@angular/core": "^20.0.0",
"@angular/platform-browser": "^20.0.0",
"@angular/router": "^20.0.0",
"@angular/common": "^20.3.6",
"@angular/compiler": "^20.3.6",
"@angular/core": "^20.3.6",
"@angular/platform-browser": "^20.3.6",
"@angular/router": "^20.3.6",
"@tanstack/angular-query-experimental": "^5.90.5",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"zone.js": "0.15.0"
"zone.js": "0.15.1"
},
"devDependencies": {
"@angular/build": "^20.0.0",
"@angular/cli": "^20.0.0",
"@angular/compiler-cli": "^20.0.0",
"@angular/build": "^20.3.6",
"@angular/cli": "^20.3.6",
"@angular/compiler-cli": "^20.3.6",
"typescript": "5.8.3"
}
}
18 changes: 9 additions & 9 deletions examples/angular/router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
},
"private": true,
"dependencies": {
"@angular/common": "^20.0.0",
"@angular/compiler": "^20.0.0",
"@angular/core": "^20.0.0",
"@angular/platform-browser": "^20.0.0",
"@angular/router": "^20.0.0",
"@angular/common": "^20.3.6",
"@angular/compiler": "^20.3.6",
"@angular/core": "^20.3.6",
"@angular/platform-browser": "^20.3.6",
"@angular/router": "^20.3.6",
"@tanstack/angular-query-experimental": "^5.90.5",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"zone.js": "0.15.0"
"zone.js": "0.15.1"
},
"devDependencies": {
"@angular/build": "^20.0.0",
"@angular/cli": "^20.0.0",
"@angular/compiler-cli": "^20.0.0",
"@angular/build": "^20.3.6",
"@angular/cli": "^20.3.6",
"@angular/compiler-cli": "^20.3.6",
"typescript": "5.8.3"
}
}
18 changes: 9 additions & 9 deletions examples/angular/rxjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
"watch": "ng build --watch --configuration development"
},
"dependencies": {
"@angular/common": "^20.0.0",
"@angular/compiler": "^20.0.0",
"@angular/core": "^20.0.0",
"@angular/forms": "^20.0.0",
"@angular/platform-browser": "^20.0.0",
"@angular/common": "^20.3.6",
"@angular/compiler": "^20.3.6",
"@angular/core": "^20.3.6",
"@angular/forms": "^20.3.6",
"@angular/platform-browser": "^20.3.6",
"@tanstack/angular-query-experimental": "^5.90.5",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"zone.js": "0.15.0"
"zone.js": "0.15.1"
},
"devDependencies": {
"@angular/build": "^20.0.0",
"@angular/cli": "^20.0.0",
"@angular/compiler-cli": "^20.0.0",
"@angular/build": "^20.3.6",
"@angular/cli": "^20.3.6",
"@angular/compiler-cli": "^20.3.6",
"typescript": "5.8.3"
}
}
16 changes: 8 additions & 8 deletions examples/angular/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@
},
"private": true,
"dependencies": {
"@angular/common": "^20.0.0",
"@angular/compiler": "^20.0.0",
"@angular/core": "^20.0.0",
"@angular/platform-browser": "^20.0.0",
"@angular/common": "^20.3.6",
"@angular/compiler": "^20.3.6",
"@angular/core": "^20.3.6",
"@angular/platform-browser": "^20.3.6",
"@tanstack/angular-query-experimental": "^5.90.5",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"zone.js": "0.15.0"
"zone.js": "0.15.1"
},
"devDependencies": {
"@angular/build": "^20.0.0",
"@angular/cli": "^20.0.0",
"@angular/compiler-cli": "^20.0.0",
"@angular/build": "^20.3.6",
"@angular/cli": "^20.3.6",
"@angular/compiler-cli": "^20.3.6",
"typescript": "5.8.3"
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Verify Angular 20’s TypeScript support (TS 5.8.3 may be out of range).

Angular often enforces a tight TS range via peer deps. Please confirm 20.3.x supports TS 5.8.3; otherwise builds may fail or warn.


🌐 Web query:

What TypeScript versions are officially supported by Angular 20.3.x (framework and CLI)?

💡 Result:

Angular 20.3.x (framework and CLI) supports TypeScript >=5.9.0 and <6.0.0 (i.e. TypeScript 5.9.x). [1]

Sources
[1] Angular — Version compatibility (TypeScript requirement for v20.2.x / v20.3.x).


🌐 Web query:

What Node.js versions are supported by Angular 20?

💡 Result:

Angular 20 supports Node.js versions: ^20.19.0, ^22.12.0, and ^24.0.0. [1]

Sources:
[1] Angular version compatibility (Angular docs).


Update TypeScript to a supported range: Angular 20.3.x requires TS >=5.9.0 <6.0.0; bump “typescript” in examples/angular/simple/package.json (line 25) to ^5.9.x to avoid peer dependency issues.

🤖 Prompt for AI Agents
In examples/angular/simple/package.json around line 25, the TypeScript version
is pinned to 5.8.3 which is incompatible with Angular 20.3.x; update the
"typescript" dependency value to a supported range such as "^5.9.0" (or
"^5.9.x") to satisfy Angular's peer requirement (>=5.9.0 <6.0.0) and avoid
install-time peer dependency conflicts.

}
}
6 changes: 3 additions & 3 deletions examples/react/algolia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"preview": "vite preview"
},
"dependencies": {
"@algolia/client-search": "5.2.1",
"@algolia/client-search": "5.40.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

CRITICAL: @vitejs/plugin-react@^4.7.0 is incompatible with vite@^6.4.0.

Same peer-dependency conflict as other React examples in this PR. Upgrade @vitejs/plugin-react to a Vite 6-compatible version.

Separately, the @algolia/client-search version bump looks good.

-    "@vitejs/plugin-react": "^4.7.0",
+    "@vitejs/plugin-react": "^5.0.0",

Also applies to: 21-21, 23-23

🤖 Prompt for AI Agents
In examples/react/algolia/package.json around lines 11, 21 and 23, the
dependency @vitejs/plugin-react@^4.7.0 is incompatible with vite@^6.4.0; update
the @vitejs/plugin-react entry to a Vite 6–compatible release (e.g. bump to a
^5.x or the plugin version that declares peer support for vite@^6), modify all
occurrences on the referenced lines to the chosen compatible version, and run
npm/yarn install to regenerate lockfile and verify the peer-dependency conflict
is resolved.

"@tanstack/react-query": "^5.90.5",
"@tanstack/react-query-devtools": "^5.90.2",
"react": "^19.0.0",
Expand All @@ -18,8 +18,8 @@
"@tanstack/eslint-plugin-query": "^5.91.2",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.2.25",
"@vitejs/plugin-react": "^4.3.4",
"@vitejs/plugin-react": "^4.7.0",
"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.0"
Comment on lines +21 to +23
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Resolve Vite 6 peer range: upgrade @vitejs/plugin-react to v5.

Prevents pnpm peer-dep failures.

-    "@vitejs/plugin-react": "^4.7.0",
+    "@vitejs/plugin-react": "^5.0.0",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"@vitejs/plugin-react": "^4.7.0",
"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.0"
"@vitejs/plugin-react": "^5.0.0",
"typescript": "5.8.3",
"vite": "^6.4.0"
🤖 Prompt for AI Agents
In examples/react/algolia/package.json around lines 21 to 23, the
@vitejs/plugin-react version (^4.7.0) is incompatible with Vite 6 peer ranges;
update the @vitejs/plugin-react entry to a V5 compatible range (e.g., "^5.0.0"
or "^5") in package.json, then run your package manager (pnpm install) to
refresh lockfiles and verify the project builds to ensure peer-dep issues are
resolved.

}
}
8 changes: 4 additions & 4 deletions examples/react/basic-graphql-request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
"dependencies": {
"@tanstack/react-query": "^5.90.5",
"@tanstack/react-query-devtools": "^5.90.2",
"graphql": "^16.9.0",
"graphql-request": "^7.1.2",
"graphql": "^16.11.0",
"graphql-request": "^7.3.0",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.3.4",
"vite": "^6.3.6"
"@vitejs/plugin-react": "^4.7.0",
"vite": "^6.4.0"
Comment on lines +19 to +20
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Align plugin with Vite 6.

Upgrade @vitejs/plugin-react to v5.

-    "@vitejs/plugin-react": "^4.7.0",
+    "@vitejs/plugin-react": "^5.0.0",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"@vitejs/plugin-react": "^4.7.0",
"vite": "^6.4.0"
"@vitejs/plugin-react": "^5.0.0",
"vite": "^6.4.0"
🤖 Prompt for AI Agents
In examples/react/basic-graphql-request/package.json around lines 19 to 20, the
@vitejs/plugin-react version is incompatible with Vite 6; update the dependency
entry to use the v5 release (e.g. change "@vitejs/plugin-react": "^4.7.0" to
"@vitejs/plugin-react": "^5.0.0" or appropriate v5 range), then run package
manager install (npm/yarn/pnpm) and verify the project builds to ensure the
plugin and Vite versions are aligned.

}
}
4 changes: 2 additions & 2 deletions examples/react/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
"@tanstack/eslint-plugin-query": "^5.91.2",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.2.25",
"@vitejs/plugin-react": "^4.3.4",
"@vitejs/plugin-react": "^4.7.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Aligns with Vite 6

Plugin bump matches Vite 6 here. Recommend scanning repo for any packages still on Vite 5 with plugin-react 4.x.

Run this repo-wide check to spot mismatches and a couple of common pitfalls:


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "Checking @vitejs/plugin-react 4.x paired with Vite 6.x..."
fd package.json | xargs -I{} bash -lc '
  has_plugin=$(jq -r ".devDependencies[\"@vitejs/plugin-react\"] // empty" "{}")
  if [[ -n "$has_plugin" && "$has_plugin" =~ ^\\^?4\\. ]]; then
    vite_ver=$(jq -r ".devDependencies.vite // .dependencies.vite // empty" "{}")
    if [[ -z "$vite_ver" || ! "$vite_ver" =~ ^\\^?6\\. ]]; then
      echo "Mismatch: {} -> plugin-react=$has_plugin, vite=$vite_ver"
    fi
  fi
'

echo "Checking react-router vs react-router-dom versions..."
fd package.json | xargs -I{} bash -lc '
  rr=$(jq -r ".dependencies[\"react-router\"] // empty" "{}")
  rrd=$(jq -r ".dependencies[\"react-router-dom\"] // empty" "{}")
  if [[ -n "$rr" && -n "$rrd" && "$rr" != "$rrd" ]]; then
    echo "Router version skew: {} -> react-router=$rr, react-router-dom=$rrd"
  fi
'

Length of output: 18129


Use this adjusted script (drops the login shell to avoid sourcing /etc/profile):


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "Checking @vitejs/plugin-react 4.x paired with Vite 6.x..."
fd --type f --name package.json | while read -r file; do
  has_plugin=$(jq -r '.devDependencies["@vitejs/plugin-react"] // empty' "$file")
  if [[ -n "$has_plugin" && "$has_plugin" =~ ^\^?4\. ]]; then
    vite_ver=$(jq -r '.devDependencies.vite // .dependencies.vite // empty' "$file")
    if [[ -z "$vite_ver" || ! "$vite_ver" =~ ^\^?6\. ]]; then
      echo "Mismatch: $file -> plugin-react=$has_plugin, vite=$vite_ver"
    fi
  fi
done

echo "Checking react-router vs react-router-dom versions..."
fd --type f --name package.json | while read -r file; do
  rr=$(jq -r '.dependencies["react-router"] // empty' "$file")
  rrd=$(jq -r '.dependencies["react-router-dom"] // empty' "$file")
  if [[ -n "$rr" && -n "$rrd" && "$rr" != "$rrd" ]]; then
    echo "Router version skew: $file -> react-router=$rr, react-router-dom=$rrd"
  fi
done

Length of output: 308


Use this corrected script:


🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

echo "Checking @vitejs/plugin-react 4.x paired with Vite 6.x..."
find . -type f -name package.json | while read -r file; do
  has_plugin=$(jq -r '.devDependencies["@vitejs/plugin-react"] // empty' "$file")
  if [[ -n "$has_plugin" && "$has_plugin" =~ ^\^?4\. ]]; then
    vite_ver=$(jq -r '.devDependencies.vite // .dependencies.vite // empty' "$file")
    if [[ -z "$vite_ver" || ! "$vite_ver" =~ ^\^?6\. ]]; then
      echo "Mismatch: $file -> plugin-react=$has_plugin, vite=$vite_ver"
    fi
  fi
done

echo "Checking react-router vs react-router-dom versions..."
find . -type f -name package.json | while read -r file; do
  rr=$(jq -r '.dependencies["react-router"] // empty' "$file")
  rrd=$(jq -r '.dependencies["react-router-dom"] // empty' "$file")
  if [[ -n "$rr" && -n "$rrd" && "$rr" != "$rrd" ]]; then
    echo "Router version skew: $file -> react-router=$rr, react-router-dom=$rrd"
  fi
done

Length of output: 557


Add Vite ^6.x to devDependencies where plugin-react ^4.x appears
The following manifests include @vitejs/plugin-react: ^4.7.0 but lack a matching vite: ^6.x:

  • packages/query-broadcast-client-experimental/package.json
  • packages/react-query-devtools/package.json
  • packages/react-query-next-experimental/package.json
  • packages/react-query-persist-client/package.json
  • packages/react-query/package.json
    Ensure each adds vite: ^6.x or removes the plugin if unused.
🤖 Prompt for AI Agents
In examples/react/basic/package.json around line 23, the manifest includes
"@vitejs/plugin-react": "^4.7.0" but does not declare a matching "vite": "^6.x";
update this file (and the other listed package.json files:
packages/query-broadcast-client-experimental/package.json,
packages/react-query-devtools/package.json,
packages/react-query-next-experimental/package.json,
packages/react-query-persist-client/package.json,
packages/react-query/package.json) by adding a devDependency "vite": "^6.x" next
to the plugin entry (or if the plugin is not actually used, remove the
"@vitejs/plugin-react" entry instead) so each package either has a compatible
vite devDependency or the unused plugin is removed.

"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.0"
},
"nx": {
"targets": {
Expand Down
8 changes: 4 additions & 4 deletions examples/react/chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"react-dom": "^19.0.0"
},
"devDependencies": {
"@tailwindcss/vite": "^4.0.14",
"@vitejs/plugin-react": "^4.3.4",
"tailwindcss": "^4.0.14",
"@tailwindcss/vite": "^4.1.14",
"@vitejs/plugin-react": "^4.7.0",
"tailwindcss": "^4.1.14",
"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.0"
Comment on lines +17 to +21
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Raise @vitejs/plugin-react to the Vite 6-compatible major.

This example now uses vite@^6.4.0, but @vitejs/plugin-react@^4.7.0 declares peers only up to Vite 5. pnpm will refuse installs because of the peer-range violation. Please bump the plugin to a release that supports Vite 6 (e.g. ^5.0.0).

🤖 Prompt for AI Agents
In examples/react/chat/package.json around lines 17 to 21 the current dependency
"@vitejs/plugin-react": "^4.7.0" is incompatible with vite@^6.4.0 (peer range
only up to Vite 5), so update the plugin to a Vite‑6‑compatible major (for
example change the version spec to "^5.0.0"); after updating package.json run
your package manager (pnpm install) to update the lockfile and verify installs
succeed without peer-range errors.

}
}
4 changes: 2 additions & 2 deletions examples/react/default-query-function/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"react-dom": "^19.0.0"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.3.4",
"@vitejs/plugin-react": "^4.7.0",
"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.0"
}
}
Loading
Loading