You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm i -D @swc-node/register
node --import @swc-node/register/esm-register scripts/prebuild.ts
And I get an error:
node:internal/modules/esm/resolve:303
return new ERR_PACKAGE_PATH_NOT_EXPORTED(
^
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './esm-register' is not defined by "exports" in /home/petrov-dm/Projects/some-project/node_modules/@swc-node/register/package.json imported from /home/petrov-dm/Projects/some-project/
details:
node -v
v20.11.0
npm pkg get type
"module"
I removed package-lock.json and node_modules and install swc-node/register - it not helps
I see in node_modules there is no /esm-register in exports field.
The text was updated successfully, but these errors were encountered:
krutoo
changed the title
npm package 1.6.8 dont have exports from master branch
NPM package with version 1.6.8 don't have exports from master branch
Jan 23, 2024
krutoo
changed the title
NPM package with version 1.6.8 don't have exports from master branch
@swc-node/register@1.6.8 don't have exports from master branch
Jan 23, 2024
I just do everything accrding to readme.md:
And I get an error:
details:
I removed
package-lock.json
andnode_modules
and installswc-node/register
- it not helpsI see in node_modules there is no
/esm-register
in exports field.But in master branch there is:
https://github.com/swc-project/swc-node/blob/master/packages/register/package.json#L79
The text was updated successfully, but these errors were encountered: