Reproduction Procedure
- Clone this
yarn
yarn dev
.swcrc
{
"jsc": {
"baseUrl": ".",
"parser": {
"syntax": "typescript",
"tsx": true,
"dynamicImport": true
},
"target": "es5"
},
"module": {
"type": "es6"
}
}
Symptoms
yarn run v1.22.19
$ SWCRC=true node --loader @swc-node/register/esm index.ts
(node:19817) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
internal/process/esm_loader.js:74
internalBinding('errors').triggerUncaughtException(
^
[Error: ENOENT: no such file or directory, open '/home/sekyu-kwon/temp/index.ts.mjs'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/home/my-name/temp/index.ts.mjs'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
As you can see, it doesn't recognize .ts. Also same with .mts.
Is it related to .swcrc recognition issues like #701 ?
Reproduction Procedure
yarnyarn devnode: 14.18.3@swc-node/register: 1.6.0 ~ 1.6.4SWCRC=true node --loader @swc-node/register/esm index.ts< 1.6, this behavior fall back into can not register @swc-node/register/esm with ERR_PACKAGE_PATH_NOT_EXPORTED error #704.swcrcSymptoms
As you can see, it doesn't recognize
.ts. Also same with.mts.Is it related to
.swcrcrecognition issues like #701 ?