Thanks to visit codestin.com
Credit goes to github.com

Skip to content

(v6) Missing dependencies @valibot/to-json-schema and effect #10122

@gnapse

Description

@gnapse

Description

After upgrading to v6 beta, I get these errors when running the app:

WARNING in ./node_modules/@ai-sdk/provider-utils/dist/index.mjs
  ⚠ Module not found: Can't resolve 'effect' in '/app/node_modules/@ai-sdk/provider-utils/dist'
     ╭─[516:33]
 514 │ var effectToJsonSchema = (schema) => async () => {
 515 │   try {
 516 │     const { JSONSchema } = await import("effect");
     ·                                  ────────────────
 517 │     return JSONSchema.make(schema);
 518 │   } catch (e) {
     ╰────


WARNING in ./node_modules/@ai-sdk/provider-utils/dist/index.mjs
  ⚠ Module not found: Can't resolve '@valibot/to-json-schema' in '/app/node_modules/@ai-sdk/provider-utils/dist'
     ╭─[527:37]
 525 │   return async () => {
 526 │     try {
 527 │       const { toJsonSchema } = await import("@valibot/to-json-schema");
     ·                                      ─────────────────────────────────
 528 │       return toJsonSchema(schema);
 529 │     } catch (e) {
     ╰────

AI SDK Version

  • ai: 6.0.0-beta.95
  • @ai-sdk/react: 3.0.0-beta.95

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai/corecore functions like generateText, streamText, etc. Provider utils, and provider spec.support

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions