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
importclusterfrom"node:cluster";console.log(newDate);if(cluster.isPrimary){constworker=cluster.fork();worker.send('ok');}else{console.log('fork');process.on('message',(message)=>{// <----- it is not called when the tsxconsole.log('fork',message,newDate())})}
Acknowledgements
Minimal reproduction URL
https://stackblitz.com/edit/node-wksbsy?file=index.ts
Problem & expected behavior (under 200 words)
Example: index.ts
Output:
Now use tsc and run node:
Output:
❓
Why does this example work differently? Is it correct with node and incorrect with tsx ?
Bugs are expected to be fixed by those affected by it
Compensating engineering work will speed up resolution and support the project
The text was updated successfully, but these errors were encountered: