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

@swc/core 1.4.12 break @swc-node/register/esm-register #765

Open
zckrs opened this issue Apr 4, 2024 · 0 comments
Open

@swc/core 1.4.12 break @swc-node/register/esm-register #765

zckrs opened this issue Apr 4, 2024 · 0 comments

Comments

@zckrs
Copy link

zckrs commented Apr 4, 2024

Just update our package-lock.json and node --import @swc-node/register/esm-register source/server.ts fail

❯ node --import @swc-node/register/esm-register source/server.ts

node:internal/process/esm_loader:40
      internalBinding('errors').triggerUncaughtException(
                                ^
Error: Bindings not found.

source/server.js

import {hostname as getHostname} from 'node:os';

const hostname = getHostname()';
console.log(hostname)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant