Skip to content

Receiving the error "Error: Cannot read properties of undefined (reading 'workers')" after upgrading to v3.3.30 using Next.js v14.2.9 #2948

@WoetDev

Description

@WoetDev

Description

After upgrading to v3.3.30, I receive the following error:
image

Code example

You can find the reproduction of the bug in this repository: https://github.com/WoetDev/bug-next-ai-sdk

It's a reproduction of the official example for using AI assistants with the Next.js app router, so this example seems to be broken: https://sdk.vercel.ai/examples/next-app/assistants/stream-assistant-responses

You only need to add your OPENAI API key in the .env file:

OPENAI_API_KEY=xxxx

Additional context

Noticed this issue when upgrading packages, this is affecting the AI functionality in my production app and blocking me from upgrading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as documented

    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