F
Filamentβ€’13mo ago
Soundmit

Install Spatie Translatable Plugin

I'm trying to install the Spatie Translatable Plugin with

composer require filament/spatie-laravel-translatable-plugin:"^3.0-stable" -W

composer require filament/spatie-laravel-translatable-plugin:"^3.0-stable" -W
but i get this error

...
- filament/spatie-laravel-translatable-plugin v3.0.97 requires filament/support v3.0.97 -> found filament/support[v3.0.97] but these were not loaded, likely because it conflicts with another require.
- filament/spatie-laravel-translatable-plugin v3.0.98 requires filament/support v3.0.98 -> found filament/support[v3.0.98] but these were not loaded, likely because it conflicts with another require.
- filament/spatie-laravel-translatable-plugin v3.0.99 requires filament/support v3.0.99 -> found filament/support[v3.0.99] but these were not loaded, likely because it conflicts with another require.
...

...
- filament/spatie-laravel-translatable-plugin v3.0.97 requires filament/support v3.0.97 -> found filament/support[v3.0.97] but these were not loaded, likely because it conflicts with another require.
- filament/spatie-laravel-translatable-plugin v3.0.98 requires filament/support v3.0.98 -> found filament/support[v3.0.98] but these were not loaded, likely because it conflicts with another require.
- filament/spatie-laravel-translatable-plugin v3.0.99 requires filament/support v3.0.99 -> found filament/support[v3.0.99] but these were not loaded, likely because it conflicts with another require.
...
my version of filament is v3.0.100 php 8.2
15 Replies
3rgo
3rgoβ€’13mo ago
This seems like a conflict version from composer, but we need to see the entire error to help you
Soundmit
SoundmitOPβ€’13mo ago
this is my composer
Soundmit
SoundmitOPβ€’13mo ago
this is the complete error
3rgo
3rgoβ€’13mo ago
did you already do composer install ?
Soundmit
SoundmitOPβ€’13mo ago
no, when i start to develop i made a pull from git and a composer update (and a migrate:refresh if necessary)
3rgo
3rgoβ€’13mo ago
When you pull from git, you should first do composer install to install the dependencies based on the composer.lock file. Composer update will update the dependencies to the latest version allowed by the constraints. Can you please try doing a composer install, then your composer require command ?
Soundmit
SoundmitOPβ€’13mo ago
done : Nothing to install, update or remove and then the same error
3rgo
3rgoβ€’13mo ago
Usually when there's a conflict on composer dependencies, at the end of the error message there's the package blocking the resolution. Unfortunately on your error I didn't see it. I'm sorry I can't help you more
Soundmit
SoundmitOPβ€’13mo ago
fast forward at home on macos (at work on linux) same dev env with ddev on macos no error... tomorrow i will investigate on the linux installation
3rgo
3rgoβ€’13mo ago
You can try removing the vendor folder and retrying the composer install And check the PHP version as well, you require ^8.1, maybe you're on 8.0 or less
Soundmit
SoundmitOPβ€’13mo ago
done! just pull and composer install
3rgo
3rgoβ€’13mo ago
does the composer require works now ?
Soundmit
SoundmitOPβ€’13mo ago
Everything is working now; I wouldn't know where the issue was. This morning, I simply did a git pull, a composer install, and everything went smoothly.
3rgo
3rgoβ€’13mo ago
🀣 the mysterious ways of package managers
Soundmit
SoundmitOPβ€’13mo ago
πŸ™‚
Want results from more Discord servers?
Add your server