MastraM
Mastraโ€ข2mo ago
rodc87

Mastra studio- Weather agent template circular reference

Hello Mastra team, I am new to Mastra and really excited about the framework and all it's different features. I am now trying Mastra Cloud and since Studio was introduced I am getting an error on the weather agent template - example (https://github.com/mastra-ai/weather-agent ) which is giving me the following in the [Studio Overview Tab] , stating there is a circular reference : Circular dependency found:
9:48:55 pm Circular dependency found:
    .mastra/.build/@ai-sdk-openai.mjs -> .mastra/.build/@ai-sdk-openai.mjs
error
9:48:56 pm Build pipeline failed: {"message":"Failed during bundler bundle stage: \"openai\" cannot be exported from \".mastra/.build/@ai-sdk-openai.mjs\" as it is a reexport that references itself.","details":{"message":"Failed during bundler bundle stage: \"openai\" cannot be exported from \".mastra/.build/@ai-sdk-openai.mjs\" as it is a reexport that references itself.","domain":"DEPLOYER","category":"SYSTEM","details":{}},"code":"DEPLOYER_BUNDLER_BUNDLE_STAGE_FAILED"}
error
9:48:56 pm Failed during bundler bundle stage: "openai" cannot be exported from ".mastra/.build/@ai-sdk-openai.mjs" as it is a reexport that references itself.
Strangely Studio tells me it's RUNNING afterwards but no Workflow or Agents are present since the Pipeline failed. Could you let me know how this can be solved ? Maybe it's a simple question but I've tried to read the documentation and couldn't find an explanation and the default template for agent weather you provide used to work before studio was introduced for me. Many thanks for your help and for building this amazing framework.
GitHub
One Agent, one Workflow and one Tool to bring you the weather in your city. - mastra-ai/weather-agent
Was this page helpful?