Closed rafalzawadzki closed 1 week ago
Steps to reproduce:
3.3.19
streamText
ReferenceError: performance is not defined
performance
Expected result: ai can be used on Next.js Edge Runtime.
ai
Temporary workaround: Downgrade to ai@3.3.10.
ai@3.3.10
No response
performance has been added in this commit: https://github.com/vercel/ai/commit/099db960d18e098ae728dce1b73fcfa6acee221e
Having the same issue.
Fix: https://github.com/vercel/ai/pull/2864/files
Fixed in ai@3.3.24
ai@3.3.24
Description
Steps to reproduce:
3.3.19
)streamText
in API route on edge in Next.jsReferenceError: performance is not defined
becauseperformance
is not a supported API in Edge RuntimeExpected 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: https://github.com/vercel/ai/commit/099db960d18e098ae728dce1b73fcfa6acee221e