wellworn
traps · 2 served

AI SDK

ai · latest 7.0.93 · Apache-2.0

Provider-agnostic generation, streaming, and structured output for TypeScript and React.

symptom and fix
blocker · >=7.0.0 · published · verified 2026-09-08
AI SDK 7 fails to load in a CommonJS project, or on Node 18 or 20.
7.0 requires Node.js 22 or later and every package is ESM only, so `require()` no longer resolves. Move the project to ESM or stay on 6.x until you can.
evidence
major · >=7.0.0 · published · verified 2026-09-08
After upgrading, the `system` prompt is ignored and `result.fullStream` is undefined.
7.0 renamed `system` to `instructions`, `fullStream` to `stream`, `onFinish` to `onEnd`, `onStepFinish` to `onStepEnd`, `experimental_telemetry` to `telemetry` (now in @ai-sdk/otel), and `stepCountIs()` to `isStepCount()`. Top-level result fields also aggregate every step now, so read `finalStep` when you want only the last one.
evidence

Sorted by severity. Your agent sees the subset that matches the version you have installed: traps(library: "vercel-ai-sdk", version: "7.0.93").