WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Runtime error with latest version of Mastra core #10933

@daneatmastra

Description

@daneatmastra

This issue was created from Discord post 1446154222411317419:

Open in Discord

I recently updated to a recent version of @mastra/core 0.23.3 and I get the following error at runtime, which never appeared before:

/app/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected][email protected]_z2dqksn5fjdorsfe3momgu443q/node_modules/@mastra/core/dist/chunk-5KNLBUBH.cjs:97
- Focus on content that could cause real harm
                              ^
Error [ERR_REQUIRE_ESM]: require() of ES Module /app/node_modules/.pnpm/@[email protected]/node_modules/@sindresorhus/slugify/index.js from /app/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected][email protected]_z2dqksn5fjdorsfe3momgu443q/node_modules/@mastra/core/dist/chunk-5KNLBUBH.cjs not supported.
Instead change the require of index.js in /app/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected][email protected]_z2dqksn5fjdorsfe3momgu443q/node_modules/@mastra/core/dist/chunk-5KNLBUBH.cjs to a dynamic import() which is available in all CommonJS modules.
    at Hook.Module.require (/app/node_modules/.pnpm/[email protected]/node_modules/dd-trace/packages/dd-trace/src/ritm.js:97:31)
    at Object.<anonymous> (/app/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected][email protected]_z2dqksn5fjdorsfe3momgu443q/node_modules/@mastra/core/dist/chunk-5KNLBUBH.cjs:26:15) {
  code: 'ERR_REQUIRE_ESM'

The error appears **only **when I am deploying my application on Koyeb while the local development environment (using a Devcontainer) works just fine. It seems to be related to some issues with slugify. Do you have any idea on how to solve this?

Metadata

Metadata

Labels

discordFor issues created from Discord discussions.p: urgentUrgent prioritytrio-wp

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions