ERR_REQUIRE_ESM error with shikiji package #120
-
I'm running into the following issue with my email templates due to the shikiji package: var import_shikiji = __toESM(require("shikiji"));
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /mnt/c/Users/backend/api/node_modules/shikiji/dist/index.mjs not supported.
Instead change the require of /mnt/c/Users/backend/api/node_modules/shikiji/dist/index.mjs to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (/mnt/c/Users/backend/api/node_modules/jsx-email/dist/index.js:236:30)
at Object.<anonymous> (/mnt/c/Users/backend/api/dist/emails/qualification-invite.js:5:21)
at Object.<anonymous> (/mnt/c/Users/backend/api/dist/auth/auth.service.js:35:32)
at Object.<anonymous> (/mnt/c/Users/backend/api/dist/auth/auth.controller.js:23:24)
at Object.<anonymous> (/mnt/c/Users/backend/api/dist/auth/auth.module.js:11:27)
at Object.<anonymous> (/mnt/c/Users/backend/api/dist/app.module.js:19:23)
at Object.<anonymous> (/mnt/c/Users/backend/api/dist/main.js:11:22) I am on version |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hm that's interesting. Could you put together a small reproduction using https://stackblitz.com/edit/jsx-email-repro? |
Beta Was this translation helpful? Give feedback.
-
@amerfarooq this should be resolved in the latest version. please let me know if anything pops back up on you. |
Beta Was this translation helpful? Give feedback.
@amerfarooq this should be resolved in the latest version. please let me know if anything pops back up on you.