ts-node throwing errors in module configured package with esnext/nodenext modules #1994
Unanswered
kasi1999999
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello ts-node community,
I am trying to put together my configuration for npm package using
"type:" module
and tsconfig"target": "esnext"
with esm modules -"module": "NodeNext"
.I would like to be able to use
mocha
as testing framework andts-node
as quick development support tool to run ts scripts but also to experiment in REPL.However I came across following issues - please check my github repo
On main branch, there is working mocha runner, but broken
ts-node
On workaround-broken-mocha branch, there is working
ts-node
(by overriding built into esm by using cjs) but broken mocha runner.Can you please help me fix it and explain, what's wrong? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions