Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New version (1.10.1) is broken #802

Closed
hax opened this issue Jul 5, 2024 · 0 comments · Fixed by #803
Closed

New version (1.10.1) is broken #802

hax opened this issue Jul 5, 2024 · 0 comments · Fixed by #803

Comments

@hax
Copy link

hax commented Jul 5, 2024

node --enable-source-maps --no-warnings --import @swc-node/register/esm-register index.ts

And index.ts has line import simpleGit from 'simple-git', cause error:

node:internal/modules/run_main:129
    triggerUncaughtException(
    ^
Error: Cannot find module 'child_process': child_process cannot be resolved in file:///test/node_modules/simple-git/dist/esm/index.js
    at resolve (/test/node_modules/@swc-node/register/esm.mts:195:11)
    at async nextResolve (node:internal/modules/esm/hooks:866:22)
    at async Hooks.resolve (node:internal/modules/esm/hooks:304:24)
    at async handleMessage (node:internal/modules/esm/worker:196:18)

Rollback to 1.10.0 works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant