swc-project / swc-node

Faster ts-node without typecheck
MIT License
1.81k stars 76 forks source link

what the hell ? node22 #841

Open Super1Windcloud opened 3 months ago

Super1Windcloud commented 3 months ago

node:internal/modules/esm/resolve:768 throw new ERR_INVALID_MODULE_SPECIFIER( ^

TypeError [ERR_INVALID_MODULE_SPECIFIER]: Invalid module "@swc-node\register\esm-register" is not a valid package name imported from A:\Webstorm\awesome_example\ at parsePackageName (node:internal/modules/esm/resolve:768:11) at packageResolve (node:internal/modules/esm/resolve:792:5) at moduleResolve (node:internal/modules/esm/resolve:914:18) at defaultResolve (node:internal/modules/esm/resolve:1119:11) at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:542:12) at ModuleLoader.resolve (node:internal/modules/esm/loader:511:25) at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:241:38) at ModuleLoader.import (node:internal/modules/esm/loader:474:34) at asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:104:36)

benjamincburns commented 1 month ago

backslashes.