This is a basic reproduction for the swc relative import issue in swc-project/swc-node#804
nvm use # 20.15.0
pnpm i
pnpm test-type # everything is properly typed
pnpm test # should fail
In package.json
, change the version of @swc-node/register
to 1.10.0
:
- "@swc-node/register": "^1.10.2",
+ "@swc-node/register": "^1.10.0",
Running pnpm test
should not fail.