tsx watch doesn't detect file changes on node 24.x
bugpending triage
### Acknowledgements
- [x] I read the documentation and searched existing issues to avoid duplicates
- [x] I understand this is a **bug tracker** and anything other than a proven bug will be closed
- [x] I understand this is a free project and relies on community contributions
- [x] I read and understood the [Contribution guide](https://github.com/privatenumber/tsx/blob/master/CONTRIBUTING.md)
### Minimal reproduction URL
none
### Problem & expected behavior (under 200 words)
After upgrading from node v22.21.1 to node v24.12.0, tsx watch mode stopped detecting file changes.
Previously, it would restart app upon file change, but after upgrading node to 24.12.0 it never restarts.
tsx version: `4.21.0`
The watch command we use is the following:
`TZ=utc tsx watch --inspect=9229 --include .env --env-file=.env --conditions=development src/index.ts -c dev`
Our index.ts file
```ts
import { PgInstrumentation } from '@opentelemetry/instrumentation-pg';
import './dsn';
import { parseEnv } from './env';
import 'pgvector';
const env = parseEnv();
// this must run before any app-code as it augments modules
const pgInstrumentation = new PgInstrumentation({
// add query + params to span attributes
enhancedDatabaseReporting: true,
requireParentSpan: true,
});
void import('./app.js').then(mod => mod.createApp(env, [pgInstrumentation]).run());
```
### Bugs are expected to be fixed by those affected by it
- [ ] I'm interested in working on this issue
### Compensating engineering work will speed up resolution and support the project
- [ ] I'm willing to offer $10 for financial support
8 条评论