Conversation
Add overrides to pin react/react-dom to ^18.0.0 to prevent npm from resolving React 19 (via @dnd-kit's loose >=16.8.0 peer dep), which conflicts with @wordpress/icons and @wordpress/scripts requiring react@^18.0.0. Also pins minimatch to 5.1.8 to avoid a yanked 5.1.9 tarball that breaks fresh installs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
@dpellenwood @GeoffDusome I ran into this issue on the Nexcess site when trying to install fresh dependencies. NPM wants to automatically go to React 19 which is causing issues with the WordPress icon library peer dependency requirement. I'm not sure why the extra minimatch override was originally included, but I have removed that without issue. |
Note that this issue is only applicable if there is not a |
Summary
overridesblock topackage.jsonto pinreactandreact-domto^18.0.0, preventing npm from resolving React 19 (via@dnd-kit's loose>=16.8.0peer dep) which conflicts with@wordpress/iconsand@wordpress/scriptsTest plan
node_modulesandpackage-lock.json, then runnpm install— should complete without errorsnpm run buildto verify blocks compile successfully🤖 Generated with Claude Code