When running below command in my "TurboRepo monorepo", which will run "turbowatch" in 8 packages.
pnpm exec turbowatch '**/turbowatch.ts'
I get below warning:
[turbowatch] running turbowatch without logging enabled; set ROARR_LOG=true to enable logging. Install @roarr/cli to pretty-print logs.
(node:78062) MaxListenersExceededWarning: Possible EventTarget memory leak detected. 11 abort listeners added to [AbortSignal]. Use events.setMaxListeners() to increase limit
(Use `node --trace-warnings ...` to show where the warning was created)
and further builds fail continuously for packages with below error:
ELIFECYCLE Command failed.
But when I run with below command, which runs "turbowatch" only for 4 out of 8 packages:
TurboWatch should have been able to build all packages.
Current Behavior
The command fails with below warning and error:
[turbowatch] running turbowatch without logging enabled; set ROARR_LOG=true to enable logging. Install @roarr/cli to pretty-print logs.
(node:78062) MaxListenersExceededWarning: Possible EventTarget memory leak detected. 11 abort listeners added to [AbortSignal]. Use events.setMaxListeners() to increase limit
(Use `node --trace-warnings ...` to show where the warning was created)
Further builds fail continuously for packages with below error:
ELIFECYCLE Command failed.
Possible Solution
May be using events.setMaxListeners() to increase the limit, but not sure how to do that.
Steps to Reproduce
Run turbowatch in a turborepo having more than 8 packages and each package having a turbowatch.ts as below:
When running below command in my "TurboRepo monorepo", which will run "turbowatch" in 8 packages.
I get below warning:
and further builds fail continuously for packages with below error:
But when I run with below command, which runs "turbowatch" only for 4 out of 8 packages:
It seems to work fine.
System
Expected Behavior
TurboWatch should have been able to build all packages.
Current Behavior
The command fails with below warning and error:
Further builds fail continuously for packages with below error:
Possible Solution
May be using
events.setMaxListeners()
to increase the limit, but not sure how to do that.Steps to Reproduce
Run turbowatch in a turborepo having more than 8 packages and each package having a
turbowatch.ts
as below:Logs