fix(watcher): add micromatch as direct dependency for @parcel/watcher#10182
Merged
davidfirst merged 1 commit intomasterfrom Feb 4, 2026
Merged
fix(watcher): add micromatch as direct dependency for @parcel/watcher#10182davidfirst merged 1 commit intomasterfrom
davidfirst merged 1 commit intomasterfrom
Conversation
@parcel/watcher requires micromatch but due to pnpm's strict hoisting, it may not be accessible in all contexts, causing intermittent "Cannot find module 'micromatch'" errors during watch.
Contributor
There was a problem hiding this comment.
Pull request overview
Adds micromatch as a direct workspace dependency to prevent intermittent Cannot find module 'micromatch' failures when @parcel/watcher is resolved under pnpm’s strict module layout.
Changes:
- Add
micromatchto the workspace dependency policy so it’s available at the workspace/root installation level for watcher resolution.
| "lru-cache": "10.4.3", | ||
| "memoizee": "0.4.15", | ||
| "mime": "2.5.2", | ||
| "micromatch": "^4.0.5", |
There was a problem hiding this comment.
micromatch is being added to the workspace dependency policy, but pnpm-lock.yaml (importer "." dependencies) currently doesn’t list micromatch as a direct dependency. With pnpm, that can mean it won’t be linked at the workspace root on a clean install, which undermines the intended fix. Regenerate and commit the lockfile changes so micromatch appears as a direct dependency for the root importer.
Suggested change
| "micromatch": "^4.0.5", |
GiladShoham
approved these changes
Feb 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@parcel/watcher requires micromatch but due to pnpm's strict hoisting behavior, micromatch may not be accessible in all contexts. This causes intermittent "Cannot find module 'micromatch'" errors when running the watcher.
Adding micromatch as a direct workspace dependency ensures it's hoisted to the root node_modules where @parcel/watcher's wrapper.js can resolve it.