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
{{ message }}
Repository navigation
@angular/build watch does not pick up changes behind a directory symlink when preserveSymlinks is true (22.2.0-next) #34039
The previous version in which this bug was not present was
22.1.x (watchpack). Broken from 22.2.0-next.3.
Description
Repo layout: a shared TypeScript folder sits next to the Angular workspace. The workspace reaches it through a directory symlink. preserveSymlinks is true on the application builder.
The first build succeeds. After that, edits in the real folder (the symlink target) do not trigger a rebuild. New files and new exports are also ignored until ng serve / ng build --watch is restarted.
This is the same layout as #23896. Webpack was fixed in #23900 by setting watchpack followSymlinks when preserveSymlinks is on.
22.2.0-next.3 replaced watchpack with @parcel/watcher (a6ef9cf). createWatcher still gets followSymlinks: preserveSymlinks, but only the chokidar polling fallback uses that option. The default Parcel path never reads it.
Parcel subscribes to the workspace root. Native watchers do not recurse through a directory symlink that points outside that root. With preserveSymlinks: true, esbuild reports watch files as the symlink paths inside the workspace, so the extra outside-root subscription also never attaches to the real folder.
--poll works, because that path uses chokidar with followSymlinks.
packages/angular/build/src/tools/esbuild/watcher.ts: createParcelWatcher ignores options.followSymlinks; createChokidarWatcher sets it.
A fix that matches the old watchpack behaviour: when followSymlinks is true, realpath watch files that sit behind a directory symlink and subscribe Parcel to those real directories.
Activity
fix(@angular/build): use chokidar watcher when followSymlinks is enabled
fix(@angular/build): use chokidar watcher when followSymlinks is enabled
angular-automatic-lock-bot commentedon Oct 21, 2026
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.