triggerUncaughtException: Error: tsx must be loaded with --import instead of --loader is received after upgrading to v9 #13664
-
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 13 replies
-
|
@jurjandrei can you provide a minimal reproducible example? |
Beta Was this translation helpful? Give feedback.
-
|
@jurjandrei I believe this issue is caused by your node version. Update tsx to the latest version and use at least node 20 |
Beta Was this translation helpful? Give feedback.
-
|
Hi, I've been encountered the same issue and resolve that to use v8.40.6 of |
Beta Was this translation helpful? Give feedback.
-
|
Hi. I have the same issue using node 22.1.0 and @wdio/cli 9.2.1 Executing test with: node:internal/modules/run_main:125 |
Beta Was this translation helpful? Give feedback.
-
|
I think the issue lies within this line: If you are running e.g. Node 21 or 22 on a minor version that is below 6, then it will set I bumped my Node version from 22.3 to 22.9 and now I'm no longer getting the |
Beta Was this translation helpful? Give feedback.


@christian-bromann sure, here it is:
#13768