[CompositeExporter] Export error: ReferenceError: require is not defined

After increasing the version from 0.10.0 to 0.10.1, the following error occurs at runtime

The command to execute is as follows
After doing the mastra build
node --import . /.mastra/output/instrumentation.mjs . /.mastra/output/index.mjs

Perhaps this PR has something to do with it. Has anyone encountered the same problem and solved it?
https://github.com/mastra-ai/mastra/pull/4390
GitHub
Description

Related Issue(s)

Type of Change

Bug fix (non-breaking change that fixes an issue)
New feature (non-breaking change that adds functionality)
Breaking change (fix or feature that wo...
Was this page helpful?