Build Error When Upgrading Beyond Mastra v0.12.3

Hello,

I'm experiencing a build failure when attempting to upgrade Mastra beyond version 0.12.3. The last version that builds successfully is
"mastra": "^0.12.3"
, but any version after that results in the following error:

Error:
INFO [2025-10-24 17:13:23.319 +0100] (Mastra CLI): Analyzing dependencies...
INFO [2025-10-24 17:13:32.153 +0100] (Mastra CLI): Optimizing dependencies...
ERROR [2025-10-24 17:13:38.734 +0100] (Mastra CLI): Mastra Build failed
    error: {
      "message": "Failed to analyze Mastra application: \u0000virtual:#virtual-@repo/prisma-config-v2 (1:9): \"PackageType\" is not exported by \"../prisma-config-v2/dist/index.js\", imported by \"\u0000virtual:#virtual-@repo/prisma-config-v2\".",
      "details": {
        "message": "Failed to analyze Mastra application: \u0000virtual:#virtual-@repo/prisma-config-v2 (1:9): \"PackageType\" is not exported by \"../prisma-config-v2/dist/index.js\", imported by \"\u0000virtual:#virtual-@repo/prisma-config-v2\".",
        "domain": "DEPLOYER",
        "category": "SYSTEM",
        "details": {}
      },
      "code": "DEPLOYER_BUNDLER_ANALYZE_FAILED"
    }


Has anyone else encountered this issue? Any suggestions on how to resolve it or workarounds to upgrade to newer versions?

Thanks in advance for any help!
Was this page helpful?