Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: performance is not defined #2819

Closed
rafalzawadzki opened this issue Aug 27, 2024 · 3 comments
Closed

ReferenceError: performance is not defined #2819

rafalzawadzki opened this issue Aug 27, 2024 · 3 comments
Labels
ai/core bug Something isn't working

Comments

@rafalzawadzki
Copy link

rafalzawadzki commented Aug 27, 2024

Description

Steps to reproduce:

  1. Install latest SDK with telemetry (3.3.19)
  2. Use streamText in API route on edge in Next.js
  3. Get error ReferenceError: performance is not defined because performance is not a supported API in Edge Runtime

Expected result:
ai can be used on Next.js Edge Runtime.

Temporary workaround:
Downgrade to ai@3.3.10.

Code example

No response

Additional context

performance has been added in this commit: 099db96

@lgrammel lgrammel added bug Something isn't working ai/core labels Aug 27, 2024
@olefirenko
Copy link

Having the same issue.

@lgrammel
Copy link
Collaborator

lgrammel commented Sep 2, 2024

@lgrammel
Copy link
Collaborator

lgrammel commented Sep 2, 2024

Fixed in ai@3.3.24

@lgrammel lgrammel closed this as completed Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ai/core bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants
@lgrammel @olefirenko @rafalzawadzki and others