-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modules in tests? #64
Comments
If I replace all the imports with |
Note that the tests do run with no problems if I call |
This project uses the Line 27 in e6cfd84
Can you try with You may also have this affect ts-node only, and not your build results: https://github.com/TypeStrong/ts-node/#via-tsconfigjson-recommended |
Maybe related: nodejs/node#47880 Can you try with Node.js 18 just so we know whether the Node.js loaders issue is at the root of this problem? |
|
I managed to make it run like normal with |
For some reason, I am unable to use modules in tests.
If I try to make the file
.mts
instead of.ts
, the error changes:while the
utils.(m)ts
file starts withNote that I am unable to change my
"module": "commonjs"
intsconfig.json
and I cannot put"type": "module"
in mypackage.json
. If I do any of those, it still doesn't work, and the rest of my project breaks as well.The text was updated successfully, but these errors were encountered: