Mastra client CommonJS support
Hey there!
In this blog post I read that mastra supports CommonJS. However, when updating @mastra/client to the latest version (0.16.4), I get an error for my imports:
So my question is: Are you planning to add CommonJS support for the client package as well?
Thank you very much in advance!
In this blog post I read that mastra supports CommonJS. However, when updating @mastra/client to the latest version (0.16.4), I get an error for my imports:
The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("@mastra/client-js")' call instead.
To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field "type": "module" to 'package.json'.So my question is: Are you planning to add CommonJS support for the client package as well?
Thank you very much in advance!
Introducing Mastra Cloud and Mastra Voice (as well as a few other things)