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
Today I used patch-package to patch @inngest/agent-kit@0.3.1 for the project I'm working on.
Here is the error I encountered when importing the CJS version.
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/zander/Documents/Code/goaltime/node_modules/@dmitryrechkin/json-schema-to-zod/dist/index.js from /Users/zander/Documents/Code/goaltime/node_modules/@inngest/agent-kit/dist/index.cjs not supported.
Instead change the require of index.js in /Users/zander/Documents/Code/goaltime/node_modules/@inngest/agent-kit/dist/index.cjs to a dynamic import() which is available in all CommonJS modules.
at Module._load (/Users/zander/Documents/Code/goaltime/node_modules/@nx/js/src/executors/node/node-with-require-overrides.js:18:31)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at Object.<anonymous> (/Users/zander/Documents/Code/goaltime/node_modules/@inngest/agent-kit/dist/index.cjs:71:33)
Here is the diff that forces agent-kit to be imported by ESM.
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
@inngest/agent-kit@0.3.1
for the project I'm working on.Here is the error I encountered when importing the CJS version.
Here is the diff that forces agent-kit to be imported by ESM.
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: