toAISdkFormat and stream export issues (AI SDK v5)
getting an issue in vitest ever since i added import { toAISdkFormat } from '@mastra/ai-sdk';. The Error is SyntaxError: The requested module '@mastra/core/stream' does not provide an export named 'DefaultGeneratedFile' as anyone ran into this?
my implementation is below:
2 Replies
📝 Created GitHub issue: https://github.com/mastra-ai/mastra/issues/8957
GitHub
[DISCORD:1428495709023502346] toAISdkFormat and stream export issue...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1428495709023502346 getting an issue in vitest ever since i added import { toAISdkFormat } from '@mast...
I believe you are in a different core version than the @mastra/ai-sdk.
streamVNext
is now stream
in later versions. I don't think we have accurate peer deps because our ai-sdk package is quite new
Try upgrading and seeing if you have the issue