Skip to content
Open
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
2 changes: 1 addition & 1 deletion apps/admin-dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@hugeicons/core-free-icons": "^3.1.1",
"@hugeicons/react": "^1.1.5",
"@node-rs/argon2": "^2.0.0",
"ai": "^4.3.19",
"ai": "^5.0.52",
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot Mar 23, 2026

Choose a reason for hiding this comment

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

P1: Bumping ai from v4 to v5 is a major version change with breaking API changes. The codebase imports from ai/react (in admin-ai-assistant.tsx) which was deprecated in v4 in favor of @ai-sdk/react, and uses toDataStreamResponse() (in route.ts) which may be renamed in v5. Verify that all AI SDK usage has been migrated to v5-compatible APIs, or this upgrade will cause runtime errors.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/admin-dashboard/package.json, line 28:

<comment>Bumping `ai` from v4 to v5 is a major version change with breaking API changes. The codebase imports from `ai/react` (in `admin-ai-assistant.tsx`) which was deprecated in v4 in favor of `@ai-sdk/react`, and uses `toDataStreamResponse()` (in `route.ts`) which may be renamed in v5. Verify that all AI SDK usage has been migrated to v5-compatible APIs, or this upgrade will cause runtime errors.</comment>

<file context>
@@ -25,13 +25,13 @@
     "@hugeicons/react": "^1.1.5",
     "@node-rs/argon2": "^2.0.0",
-    "ai": "^4.3.19",
+    "ai": "^5.0.52",
     "clsx": "^2.1.1",
     "framer-motion": "^11.18.2",
</file context>
Fix with Cubic

"clsx": "^2.1.1",
"framer-motion": "^11.18.2",
"i18next": "^23.16.8",
Expand Down
Loading