When building my Mastra application on CI I recently started getting this error message:
#24 61.95 npm error notarget No matching version found for @mastra/schema-compat@1.11.0. #24 61.95 npm error notarget In most cases you or one of your dependencies are requesting #24 61.95 npm error notarget a package version that doesn't exist. #24 61.95 npm error A complete log of this run can be found in: /root/.npm/_logs/2026-03-11T14_20_54_027Z-debug-0.log #24 61.95 INFO [2026-03-11 14:21:23.361 +0000] (Mastra CLI): npm error notarget No matching version found for @mastra/schema-compat@1.11.0.
It is happening during this command
bunx mastra build --studio --debug
bunx mastra build --studio --debug
It is trying to find a schema-compat of version 1.11.0 which seems to not exist on NPM Seems it tries to use same version as specified for @mastra/core
The latest version available on npm is 1.2.0 @mastra/schema-compat