ts-node and esm (type=module in package.json) do not fit well together (see TypeStrong/ts-node#935).
For now, work-around is:
$ node --loader ts-node/esm test/index.tsinstead of
$ ts-node test/index.ts| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
ts-node and esm (type=module in package.json) do not fit well together (see TypeStrong/ts-node#935).
For now, work-around is:
$ node --loader ts-node/esm test/index.tsinstead of
$ ts-node test/index.ts