MastraM
Mastra3mo ago
Jenil

External package imports throwing error when using mastra dev command

I am importing a local package into other local package where mastra resides. Monorepo setup. Using Logger from that package to be added to mastra flow. While running mastra dev, getting the below error

ERROR [2025-10-15 16:23:50.254 +0100] (Mastra CLI): virtual:#virtual-@local/gate (1:9): "Logger" is not exported by "../gate/dist/index.js", imported by "virtual:#virtual-@local/gate"

Now Logger is being exported from the index.js file, have checked it but still throwing an error. All mastra packages are on latest version.
Was this page helpful?