After a bit of digging into documentation and issues, it seems that ts-node/esm has a default configuration for swc and it is not possible to change it with a .swcrc file, thus all imports attributes (import {} from '' with {}) are transpiled to import assertions (import {} from '' assert {}) that is no more supported in node 22 🥺
After a bit of digging into documentation and issues, it seems that ts-node/esm has a default configuration for swc and it is not possible to change it with a
.swcrc
file, thus all imports attributes (import {} from '' with {}) are transpiled to import assertions (import {} from '' assert {}) that is no more supported in node 22 🥺