Closed zckrs closed 4 months ago
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 --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)
Just update our package-lock.json and
node --import @swc-node/register/esm-register source/server.ts
failsource/server.js