update v3 error

composer require filament/filament:^3.0 --ignore-platform-req=ext-gd --ignore-platform-req=ext-zip
PHP Warning: Module "intl" is already loaded in Unknown on line 0
./composer.json has been updated
Running composer update filament/filament
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/filament ^3.0, found filament/filament[v3.0.0, ..., v3.2.35] but these were not loaded, likely because it conflicts with another require.
Problem 2
- malzariey/filament-daterangepicker-filter is locked to version 1.3.2 and an update of this package was not requested.
- malzariey/filament-daterangepicker-filter 1.3.2 requires filament/filament ^2.0 -> found filament/filament[v2.5.3, ..., v2.17.55] but it conflicts with your root composer.json require (^3.0).
Problem 3
- z3d0x/filament-logger is locked to version v0.5.6 and an update of this package was not requested.
- z3d0x/filament-logger v0.5.6 requires filament/filament ^2.11 -> found filament/filament[v2.11.0, ..., v2.17.55] but it conflicts with your root composer.json require (^3.0).

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
composer require filament/filament:^3.0 --ignore-platform-req=ext-gd --ignore-platform-req=ext-zip
PHP Warning: Module "intl" is already loaded in Unknown on line 0
./composer.json has been updated
Running composer update filament/filament
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/filament ^3.0, found filament/filament[v3.0.0, ..., v3.2.35] but these were not loaded, likely because it conflicts with another require.
Problem 2
- malzariey/filament-daterangepicker-filter is locked to version 1.3.2 and an update of this package was not requested.
- malzariey/filament-daterangepicker-filter 1.3.2 requires filament/filament ^2.0 -> found filament/filament[v2.5.3, ..., v2.17.55] but it conflicts with your root composer.json require (^3.0).
Problem 3
- z3d0x/filament-logger is locked to version v0.5.6 and an update of this package was not requested.
- z3d0x/filament-logger v0.5.6 requires filament/filament ^2.11 -> found filament/filament[v2.11.0, ..., v2.17.55] but it conflicts with your root composer.json require (^3.0).

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
7 Replies
gigiloouu
gigiloouu4mo ago
composer require parallax/filament-comments:^1.0.0 --ignore-platform-req=ext-gd --ignore-platform-req=ext-zip --with-all-dependencies -W
PHP Warning: Module "intl" is already loaded in Unknown on line 0
./composer.json has been updated
Running composer update parallax/filament-comments --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 parallax/filament-comments ^1.0.0 -> satisfiable by parallax/filament-comments[1.0.0, ..., 1.1.0].
- parallax/filament-comments[1.0.0, ..., 1.1.0] require filament/filament ^3.0 -> found filament/filament[v3.0.0, ..., v3.2.35] but it conflicts with your root composer.json require (^2.0).
composer require parallax/filament-comments:^1.0.0 --ignore-platform-req=ext-gd --ignore-platform-req=ext-zip --with-all-dependencies -W
PHP Warning: Module "intl" is already loaded in Unknown on line 0
./composer.json has been updated
Running composer update parallax/filament-comments --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 parallax/filament-comments ^1.0.0 -> satisfiable by parallax/filament-comments[1.0.0, ..., 1.1.0].
- parallax/filament-comments[1.0.0, ..., 1.1.0] require filament/filament ^3.0 -> found filament/filament[v3.0.0, ..., v3.2.35] but it conflicts with your root composer.json require (^2.0).
and this is when im trying to install parallax comments for filament
Dennis Koch
Dennis Koch4mo ago
Read the problem section: malzariey/filament-daterangepicker-filter 1.3.2 requires filament/filament ^2.0 -> found filament/filament[v2.5.3, ..., v2.17.55] but it conflicts with your root composer.json require (^3.0). z3d0x/filament-logger v0.5.6 requires filament/filament ^2.11 -> found filament/filament[v2.11.0, ..., v2.17.55] but it conflicts with your root composer.json require (^3.0). You need to also update the packages you use to a version that supports Filament v3
gigiloouu
gigiloouu4mo ago
composer update should be fix all this right?
Dennis Koch
Dennis Koch4mo ago
No. Composer only updates packages according to composer.json. If you say "I want version "2.x" it won't update to "3.x"
gigiloouu
gigiloouu4mo ago
Okay thanks i will try with this way
Dennis Koch
Dennis Koch4mo ago
So, check whether those plugins support v3, find the version that supports it and update your composer.json
gigiloouu
gigiloouu4mo ago
i try to install new version of another packages but i have this err for all packages
composer require z3d0x/filament-logger --ignore-platform-req=ext-gd --ignore-platform-req=ext-zip
PHP Warning: Module "intl" is already loaded in Unknown on line 0
./composer.json has been updated
Running composer update z3d0x/filament-logger
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Package league/uri-parser is abandoned, you should avoid using it. No replacement was suggested.
Package tgalopin/html-sanitizer is abandoned, you should avoid using it. Use symfony/html-sanitizer instead.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
PHP Warning: Module "intl" is already loaded in Unknown on line 0

Error

Class "Filament\Support\Facades\FilamentAsset" not found

at vendor/malzariey/filament-daterangepicker-filter/src/FilamentDaterangepickerFilterServiceProvider.php:26
22▕ }
23▕
24▕ public function packageBooted(): void
25▕ {
➜ 26▕ FilamentAsset::register($this->getAssets(), package: $this->getAssetPackageName());
27▕ }
28▕
29▕ protected function getAssetPackageName(): ?string
30▕ {

+8 vendor frames

9 [internal]:0
Illuminate\Foundation\Application::Illuminate\Foundation\{closure}()
+5 vendor frames

15 artisan:35
Illuminate\Foundation\Console\Kernel::handle()

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code
composer require z3d0x/filament-logger --ignore-platform-req=ext-gd --ignore-platform-req=ext-zip
PHP Warning: Module "intl" is already loaded in Unknown on line 0
./composer.json has been updated
Running composer update z3d0x/filament-logger
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Package league/uri-parser is abandoned, you should avoid using it. No replacement was suggested.
Package tgalopin/html-sanitizer is abandoned, you should avoid using it. Use symfony/html-sanitizer instead.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
PHP Warning: Module "intl" is already loaded in Unknown on line 0

Error

Class "Filament\Support\Facades\FilamentAsset" not found

at vendor/malzariey/filament-daterangepicker-filter/src/FilamentDaterangepickerFilterServiceProvider.php:26
22▕ }
23▕
24▕ public function packageBooted(): void
25▕ {
➜ 26▕ FilamentAsset::register($this->getAssets(), package: $this->getAssetPackageName());
27▕ }
28▕
29▕ protected function getAssetPackageName(): ?string
30▕ {

+8 vendor frames

9 [internal]:0
Illuminate\Foundation\Application::Illuminate\Foundation\{closure}()
+5 vendor frames

15 artisan:35
Illuminate\Foundation\Console\Kernel::handle()

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code
i think its becouse of filament is not v3 solved.