You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installing 0.3.10 version
After importing import { MCPConfiguration } from "@mastra/mcp";
I have this error :
var exitHook = require('exit-hook');
Error [ERR_REQUIRE_ESM]: require() of ES Module backend/node_modules/@mastra/mcp/node_modules/exit-hook/index.js from backend/node_modules/@mastra/mcp/dist/index.cjs not supported.
Instead change the require of index.js in backend/node_modules/@mastra/mcp/dist/index.cjs to a dynamic import() which is available in all CommonJS modules.
at Object. (backend/node_modules/@mastra/mcp/dist/index.cjs:11:16) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v20.10.0
I think exit-hook is now ESM since 4.0.0 version
The text was updated successfully, but these errors were encountered:
After installing 0.3.10 version
After importing import { MCPConfiguration } from "@mastra/mcp";
I have this error :
var exitHook = require('exit-hook');
Error [ERR_REQUIRE_ESM]: require() of ES Module backend/node_modules/@mastra/mcp/node_modules/exit-hook/index.js from backend/node_modules/@mastra/mcp/dist/index.cjs not supported.
Instead change the require of index.js in backend/node_modules/@mastra/mcp/dist/index.cjs to a dynamic import() which is available in all CommonJS modules.
at Object. (backend/node_modules/@mastra/mcp/dist/index.cjs:11:16) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v20.10.0
I think exit-hook is now ESM since 4.0.0 version
The text was updated successfully, but these errors were encountered: