-
-
Notifications
You must be signed in to change notification settings - Fork 504
Open
Description
I followed the instructions for installing symfony/webpack-encore-bundle for a 5.4 Symfony at https://symfony.com/doc/5.x/frontend/encore/installation.html
Composer installed and applied 1.10 recipe for me.
npm install however gave an error
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @symfony/[email protected]
npm ERR! Found: @symfony/[email protected]
npm ERR! node_modules/@symfony/stimulus-bridge
npm ERR! dev @symfony/stimulus-bridge@"^4.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional @symfony/stimulus-bridge@"^3.0.0" from @symfony/[email protected]
npm ERR! node_modules/@symfony/webpack-encore
npm ERR! dev @symfony/webpack-encore@"^4.0.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @symfony/[email protected]
npm ERR! node_modules/@symfony/stimulus-bridge
npm ERR! peerOptional @symfony/stimulus-bridge@"^3.0.0" from @symfony/[email protected]
npm ERR! node_modules/@symfony/webpack-encore
npm ERR! dev @symfony/webpack-encore@"^4.0.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
Tried restoring the 1.9 recipe manually (I don't know if you can install a specific version somehow) which worked for me earlier but this time it gave me the same error above.
I found that the last commit bumped stimulus-bridge from 3 to 4
d15451e
Editing the package.json to use stimulus-bridge v3 resolved my issue (npm install completes). Still I thought you guys want to know about this issue.
Thanks for any feedback
Metadata
Metadata
Assignees
Labels
No labels