Home > Enterprise >  How to solve conflicts with your root composer.json require?
How to solve conflicts with your root composer.json require?

Time:07-16

when I want to composer install filament/forms using composer require filament/forms:"^2.0", on a fresh laravel 9 installation; I get the following error:

./composer.json has been updated

Running composer update filament/forms --with-all-dependencies Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.

Problem 1 - Root composer.json requires filament/forms 2.0 -> satisfiable by filament/forms[v2.0.0]. - filament/forms v2.0.0 requires laravel/framework ^8.56 -> found laravel/framework[v8.56.0, ..., 8.x-dev] but it conflicts with your root composer.json require (^9.19).

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

CodePudding user response:

if i were in your this trouble, I'll change it manually. filament/forms v2.0.0 requires "laravel/framework": "^8.56|^9.19". and run to test. if ok, sometimes i will submit PR to the repository

CodePudding user response:

 composer require filament/forms

without the :"^2.0" worked for me.

  • Related