🚨 Build failing on Mastra Cloud (was working fine this morning)
Hey team — looks like something changed on the deployer side of MASTRA CLOUD. My app was deploying fine earlier today, but as of now it fails during the analyze step with the following error:
Failed to analyze Mastra application: node_modules/.pnpm/fetch-blob@3.2.0/node_modules/fetch-blob/streams.cjs (4:7): "default" is not exported by "node:process?commonjs-external"
Full message:
{"message":"Failed to analyze Mastra application: node_modules/.pnpm/fetch-blob@3.2.0/node_modules/fetch-blob/streams.cjs (4:7): "default" is not exported by "\u0000node:process?commonjs-external", imported by "node_modules/.pnpm/fetch-blob@3.2.0/node_modules/fetch-blob/streams.cjs".","code":"DEPLOYER_BUNDLER_ANALYZE_FAILED"}
My environment hasn’t changed — same package.json and dependencies. Using:
@mastra/core@0.20.2
@mastra/deployer-vercel@0.12.7
Node 18 (ESM mode)
Here’s my relevant context:
"type": "module",
"@ai-sdk/openai": "^2.0.46",
"@mastra/core": "0.20.2",
"@mastra/deployer-vercel": "0.12.7",
"mastra": "^0.15.1",
"fetch-blob": "3.2.0",
"openai": "^6.2.0"
It seems like the bundler recently started choking on ESM imports from fetch-blob, which wasn’t happening earlier today.
Could you confirm if there was a recent change in the deployer or bundler configuration on your end (Rollup, CommonJS externals, etc.)?
Thanks! 🙏 Happy to provide the build ID (e348ae76-c820-43c9-b070-e85d085e3806) if it helps.
5 Replies
Hi @DrMandelbrot ! Could you share your project slug as well? Thanks 🙏
yes, thank you! https://cloud.mastra.ai/nisa-dev/dashboard/projects/rapping-old-pager/runtime/deployment
Mastra Cloud
The serverless platform for AI Agents
📝 Created GitHub issue: https://github.com/mastra-ai/mastra/issues/8869
GitHub
[DISCORD:1427691371090940084] 🚨 Build failing on Mastra Cloud (w...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1427691371090940084 Hey team — looks like something changed on the deployer side of MASTRA CLOUD. My app w...
@DrMandelbrot we are still debugging the way this is happening but it def has to do with dependencies.
googleapis is being bundled throwing at fetch-blob. If you add
googleapis
to bundler: { externals: ['googleapis'] }
in your Mastra class this should unblock youThank you! I will give it a look tomorrow.