I switched my project to enable ES modules:
- added
type: modulein package.json - use
node --loader ts-node/esminstead ofts-node - changed
module: commonjstoesnext
It works fine, except when starting using paths aliases.
so, import test from './file'; works, but import test from '@app/file'; doesn't work