mastra dev
in TypeScript monorepo doesn't correctly handle dependencies
#1996
Labels
mastra dev
in TypeScript monorepo doesn't correctly handle dependencies
#1996
I'm working in a monorepo, and I've got my tools defined using TypeScript in other packages. My Mastra agent depends on these packages using
"@local/dependency-name": "workspace:^"
in my package.json. However, I get an error when I try to add these to my Mastra agent:TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for ${filepath}
. I have amain.ts
that calls the agent API, and when I run this usingtsx
it works as expected.Would the team be willing to support customization of the Rollup config, for cases like this where further customization is merited? Perhaps this can be set with an env var or similar.
The text was updated successfully, but these errors were encountered: