Skip to content
Source
Sign inSign up
TanStack/cli

fix(create): upgrade to Vite 8 and fix useStore selector in AI add-on #428

Mergedjherrmerged 1 commit intomain fromrefs/pull/428/headmerged by schiller-manuel(GitHub profile, opens in a new tab)

Showing 4 changed files with 12 additions and 5 deletions (loading 1).

x
0 of 4 viewed, 4 left
5 additions and 0 deletions.changeset/vite8-usestore-fix.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/create': patch
+---
+​
+Upgrade to Vite 8 and replace `vite-tsconfig-paths` plugin with native `resolve.tsconfigPaths` option. Fix `useStore` call in AI assistant add-on to pass required selector function.
1 addition and 1 deletionpackages/create/src/frameworks/react/add-ons/ai/assets/src/components/demo-AIAssistant.tsxModified
View file
@@ -79,7 +79,7 @@
​
export default function AIAssistant() {
- const isOpen = useStore(showAIAssistant)
+ const isOpen = useStore(showAIAssistant, (state) => state)
const { messages, sendMessage } = useGuitarRecommendationChat()
const [input, setInput] = useState('')
​
6 additions and 4 deletionspackages/create/src/frameworks/react/project/base/package.jsonModified
View file
@@ -28,14 +28,16 @@
"@testing-library/react": "^16.3.0",
"@types/react": "^19.2.0",
"@types/react-dom": "^19.2.0",
- "@vitejs/plugin-react": "^5.1.4",
+ "@vitejs/plugin-react": "^6.0.1",
"jsdom": "^28.1.0",
"typescript": "^5.9.2",
- "vite": "^7.3.1",