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
When running Fastify app with node --import jiti/register src/index.ts, it throws an ERR_REQUIRE_ESM error.
I couldn't reproduce the error when I directly used thread-stream(it might be because I didn't fully understand thread-stream), so the repro has a bit big dependency.
Environment
OS: Mac Sequoia 15.2
Node.js: 20.18.1
Package Manager: [email protected]
jiti: 2.4.2
TypeScript: 5.7.2
Fastify: 5.2.0
Reproduction
https://github.com/yshrsmz/jiti-watch-test
Describe the bug
When running Fastify app with
node --import jiti/register src/index.ts
, it throws anERR_REQUIRE_ESM
error.I couldn't reproduce the error when I directly used thread-stream(it might be because I didn't fully understand thread-stream), so the repro has a bit big dependency.
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: