swc-project / swc-node

Faster ts-node without typecheck
MIT License
1.68k stars 67 forks source link

[register] Cannot find package 'typescript #760

Closed DevSide closed 3 months ago

DevSide commented 3 months ago

For a JS project, the module throws a "Cannot find package 'typescript'" when I try to use the register esm. import register from "@swc-node/register/esm"

It should be optional and dynamically imported if this library is intended to be swc generic.