You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(node:9814) 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)
TypeError: RegExpPrototypeExec is not a function
at defaultGetFormat (/tmp/tsnode-bug/node_modules/ts-node/dist-raw/node-esm-default-get-format.js:50:24)
at defer (/tmp/tsnode-bug/node_modules/ts-node/src/esm.ts:170:7)
at /tmp/tsnode-bug/node_modules/ts-node/src/esm.ts:175:14
at Generator.next (<anonymous>)
at /tmp/tsnode-bug/node_modules/ts-node/dist/esm.js:8:71
at new Promise (<anonymous>)
at __awaiter (/tmp/tsnode-bug/node_modules/ts-node/dist/esm.js:4:12)
at getFormat (/tmp/tsnode-bug/node_modules/ts-node/dist/esm.js:108:16)
at /tmp/tsnode-bug/node_modules/ts-node/src/esm.ts:127:14
at Generator.next (<anonymous>)
Search Terms
RegExpPrototypeExec, ESM
Expected Behavior
It shows no error
Actual Behavior
It shows an error:
Steps to reproduce the problem
Using node --loader ts-node/esm src/index.ts results in the error above
Minimal reproduction
See https://github.com/SimonSiefke/ts-node-esm-bug
Specifications
ts-node v10.3.1
node v17.0.1
compiler v4.5.0-beta
Ubuntu 21.04
The text was updated successfully, but these errors were encountered: