factory-generator icon indicating copy to clipboard operation
factory-generator copied to clipboard

Only one of these can be installed: illuminate/support, laravel/framework replaces illuminate/support and thus cannot coexist with it.

Open whoacowboy opened this issue 10 months ago • 2 comments

I am following this Laravel 11.x Compatibility #29 issue/pr and attempting to run this I get the following error.

Only one of these can be installed: illuminate/support[v5.0.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, 
  v8.0.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev, v10.0.0, ..., 10.x-dev, v11.0.0, ..., 11.x-dev], 
laravel/framework[v11.0.0, ..., 11.x-dev].
laravel/framework replaces illuminate/support and thus cannot coexist with it.

Any ideas?

whoacowboy avatar Apr 03 '24 20:04 whoacowboy

Root composer.json requires laravel-shift/factory-generator dev-l11-compatibility -> satisfiable by laravel-shift/factory-generator[dev-l11-compatibility]. - Conclusion: don't install laravel/framework v11.3.0 (conflict analysis result) - Conclusion: don't install laravel/framework v11.3.1 (conflict analysis result) - laravel-shift/factory-generator dev-l11-compatibility requires naoray/eloquent-model-analyzer ^3.0|^4.0 -> satisfiable by naoray/eloquent-model-analyzer[v3.0.0, v3.0.1, v4.0.0]. - naoray/eloquent-model-analyzer v4.0.0 requires illuminate/support ^8.24.0|^9.0|^10.0 -> satisfiable by illuminate/support[v8.24.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev, v10.0.0, ..., 10.x-dev]. - naoray/eloquent-model-analyzer[v3.0.0, ..., v3.0.1] require illuminate/support ^8.24.0|^9.0 -> satisfiable by illuminate/support[v8.24.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev]. - Only one of these can be installed: illuminate/support[dev-master, v4.0.0-BETA2, ..., 4.2.x-dev, v5.0.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev, v10.0.0, ..., 10.x-dev, v11.0.0, ..., 11.x-dev, 12.x-dev], laravel/framework[v11.2.0, v11.3.0, v11.3.1, 11.x-dev]. laravel/framework replaces illuminate/support and thus cannot coexist with it. - akaunting/laravel-setting[1.2.0, ..., 1.2.9] require laravel/framework >=5.3 -> satisfiable by laravel/framework[v11.2.0, v11.3.0, v11.3.1, 11.x-dev]. - Conclusion: don't install laravel/framework v11.2.0 (conflict analysis result)

I am having the same issue after running the shift to update to Laravel 11.

lucaSabato avatar Apr 11 '24 13:04 lucaSabato

@lucaSabato FWIW, I ended up just writing the factories from scratch and moving on. Fairly boring but faster then trying to get this to work.

I tried brand new projects with different laravel versions as well and I received similar errors.

whoacowboy avatar Apr 11 '24 14:04 whoacowboy