Playground when mastra is embedded

When I run mastra embedded in an api route like the assistant-ui docs suppose https://www.assistant-ui.com/docs/runtimes/mastra/full-stack-integration I can not start the playground. It complains with mastra dev INFO [2025-10-16 12:57:58.803 +0200] (Mastra CLI): [Mastra Dev] - Starting server... file:///.../.mastra/output/index.mjs:27 import { A2AError } from '@mastra/core/a2a'; ^^^^^^^^ SyntaxError: The requested module '@mastra/core/a2a' does not provide an export named 'A2AError' at ModuleJob._instantiate (node:internal/modules/esm/module_job:182:21) at async ModuleJob.run (node:internal/modules/esm/module_job:266:5) at async onImport.tracePromise.proto (node:internal/modules/esm/loader:644:26) at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5) Node.js v22.15.1 Am I missing something or is that a bug?
3 Replies
Mastra Triager
GitHub
[DISCORD:1428337766575509544] Playground when mastra is embedded ·...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1428337766575509544 When I run mastra embedded in an api route like the assistant-ui docs suppose https://...
_roamin_
_roamin_5d ago
Hi @uniquename ! Could you try updating your Mastra packages to latest?
uniquename
uniquenameOP5d ago
My bad, I had an old version of mastra-cli globally. Works as expected now. Thanks!

Did you find this page helpful?