Title: Watch mode not triggered by worker module and dependencies · Issue #62275 · nodejs/node · GitHub
Open Graph Title: Watch mode not triggered by worker module and dependencies · Issue #62275 · nodejs/node
X Title: Watch mode not triggered by worker module and dependencies · Issue #62275 · nodejs/node
Description: Version v24.14.0, v25.8.1 Platform - Microsoft Windows NT 10.0.19045.0 x64 - Linux
Open Graph Description: Version v24.14.0, v25.8.1 Platform - Microsoft Windows NT 10.0.19045.0 x64 - Linux
X Description: Version v24.14.0, v25.8.1 Platform - Microsoft Windows NT 10.0.19045.0 x64 - Linux <host> 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 GNU/Linux Subsystem No r...
Opengraph URL: https://github.com/nodejs/node/issues/62275
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Watch mode not triggered by worker module and dependencies","articleBody":"### Version\n\nv24.14.0, v25.8.1\n\n### Platform\n\n```text\n- Microsoft Windows NT 10.0.19045.0 x64\n- Linux \u003chost\u003e 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 GNU/Linux\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\nWhen running a script that creates a `Worker` under watch mode, modifying the worker module and its dependencies does not trigger a restart\n\n```js\n// main.mjs\nimport {Worker} from 'node:worker_threads';\nnew Worker('./worker.mjs').on('message', console.log);\n\n// worker.mjs\nimport {parentPort} from 'node:worker_threads';\nparentPort.postMessage(Date.now());\n```\n```sh\n$ node --watch main.mjs\n\n# In another shell sesssion\n$ touch worker.mjs # does not trigger restart\n$ touch main.mjs # triggers restart\n```\n\n\n### How often does it reproduce? Is there a required condition?\n\nAlways\n\n### What is the expected behavior? Why is that the expected behavior?\n\nModifying the worker module (or its dependencies) triggers a restart under watch mode\n\n### What do you see instead?\n\nModifying the worker module (or its dependencies) does not trigger a restart under watch mode\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/clemyan","@type":"Person","name":"clemyan"},"datePublished":"2026-03-16T10:54:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/62275/node/issues/62275"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c8de7193-4319-d6b9-eb02-af15956554bb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED22:6E493:13658CB:1A37FFB:6A4C78B5 |
| html-safe-nonce | c71fb0537fecdfcbcc1e91f165f6bbfd52f6a3606c45020fdd6a9154deee3e0a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDIyOjZFNDkzOjEzNjU4Q0I6MUEzN0ZGQjo2QTRDNzhCNSIsInZpc2l0b3JfaWQiOiI4MzA2ODAxMjA5OTQwNjcwNjQ2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2f192364a8b0824c594585b1857d144fc5caea7f0a179f3f37325ca78a9c4b7c |
| hovercard-subject-tag | issue:4081735696 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/62275/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ffbbf5b5e53d79218929329f6af16be9f6ff45fc238f5f6b570e2f9104d01f24/nodejs/node/issues/62275 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ffbbf5b5e53d79218929329f6af16be9f6ff45fc238f5f6b570e2f9104d01f24/nodejs/node/issues/62275 |
| og:image:alt | Version v24.14.0, v25.8.1 Platform - Microsoft Windows NT 10.0.19045.0 x64 - Linux |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | clemyan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56ac743bebb13694b888673bb7257f4b97a4b7fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width