Any reason why I cannot create a base configuration and instanciate mastra with it?
This works fine
But this fails when running
mastra dev
config module just has this
Exception
5 Replies
📝 Created GitHub issue: https://github.com/mastra-ai/mastra/issues/10700
🔍 If you're experiencing an error, please provide a minimal reproducible example whenever possible to help us resolve it quickly.
🙏 Thank you for helping us improve Mastra!
Hi @rachirib i reproduce!
When you spread it into an object it looses context
new Mastra(confg) works but the spread doesn'tI have a fix here https://github.com/mastra-ai/mastra/pull/10718
GitHub
fix: handle undefined values when spreading config in Mastra constr...
When config is spread ({ ...config }), getters or non-enumerable properties can result in undefined values. Previously this would throw cryptic errors like "Cannot read property 'n...
GitHub
fix: handle undefined values when spreading config in Mastra constr...
When config is spread ({ ...config }), getters or non-enumerable properties can result in undefined values. Previously this would throw cryptic errors like "Cannot read property 'n...
Thank you ! That's so quick!