When all of these five conditions are met, this script is for some reason not running:
You are running node version 21
The command is run in a turborepo based repo
The script is running tsx in watchmode
The package.json has type: "module" in it.
The script is importing from node:process
It seems that if one of these condition are NOT met, then the script executes successfully. I've pondered if I should've raised this issue in turborepo instead but I'm going to start here.
I expect to see You don't see me because I'm importing 'process' when I run pnpm turbo dev2 when standing in the root. Currently I'm not seeing that, not even an error.
Acknowledgements
Minimal reproduction URL
https://github.com/hornta/node-jzrqb3/tree/main
Version
4.7.2
Node.js version
21.7.3
Package manager
pnpm
Operating system
Windows
Problem & expected behavior (under 200 words)
When all of these five conditions are met, this script is for some reason not running:
type: "module"
in it.node:process
It seems that if one of these condition are NOT met, then the script executes successfully. I've pondered if I should've raised this issue in turborepo instead but I'm going to start here.
I expect to see
You don't see me because I'm importing 'process'
when I runpnpm turbo dev2
when standing in the root. Currently I'm not seeing that, not even an error.Contributions