fix(create): upgrade to Vite 8 and fix useStore selector in AI add-on#428
fix(create): upgrade to Vite 8 and fix useStore selector in AI add-on#428schiller-manuel merged 1 commit intomainfrom
Conversation
- Upgrade vite from ^7.3.1 to ^8.0.0 and @vitejs/plugin-react to ^6.0.1 - Replace vite-tsconfig-paths plugin with native resolve.tsconfigPaths - Pass required selector function to useStore in AI assistant component Made-with: Cursor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughUpgrades Vite from 7.3.1 to 8.0.0 and updates related React tooling. Migrates from the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
vitefrom^7.3.1to^8.0.0and@vitejs/plugin-reactfrom^5.1.4to^6.0.1vite-tsconfig-paths: Replaced with Vite 8's nativeresolve: { tsconfigPaths: true }option, eliminating an extra dependencyuseStorecrash in AI add-on: TheuseStorecall indemo-AIAssistant.tsxwas missing the required selector function, causing aTypeError: selector is not a functionat runtime. Added(state) => stateas the selector.Test plan
pnpm buildpassespnpm test(unit + e2e) all greennode packages/cli/dist/index.js dev test-app --framework React --add-ons aiMade with Cursor
Summary by CodeRabbit
Dependencies
Configuration Updates
Bug Fixes