F
Filament12mo ago
justgkp

Getting error while installing Filament V3

22 Replies
toeknee
toeknee12mo ago
You need to understand composer better, you can’t install v3 without installing livewire v3 beta.
justgkp
justgkp12mo ago
Already installed lv3 "require": { "php": "^8.1", "guzzlehttp/guzzle": "^7.2", "laravel/framework": "^10.10", "laravel/sanctum": "^3.2", "laravel/tinker": "^2.8", "livewire/livewire": "^3.0@beta" },
lucianosnchz
lucianosnchz12mo ago
i have this problem too, did you fixed ?
Patrick Boivin
Patrick Boivin12mo ago
I think you should remove livewire/livewire from your composer.json... let Filament install the version it needs. composer require -W filament/filament:"^3.0"
lucianosnchz
lucianosnchz12mo ago
- Installing livewire/livewire (2.x-dev cca62ce): Extracting archive remove livewire -> composer update -> install fillament v3 and everything is ok. but i install livewire 2.* is it correct?
Patrick Boivin
Patrick Boivin12mo ago
No, Filament 3 requires Livewire 3 @lucianosnchz Can you share your composer.json?
lucianosnchz
lucianosnchz12mo ago
I knoe, Yes of course !
{
"name": "laravel/laravel",
"type": "project",
"description": "The skeleton application for the Laravel framework.",
"keywords": ["laravel", "framework"],
"license": "MIT",
"require": {
"php": "^8.1",
"filament/filament": "^3.0",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.10",
"laravel/sanctum": "^3.2",
"laravel/tinker": "^2.8"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.1",
"spatie/laravel-ignition": "^2.0"
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
]
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true,
"php-http/discovery": true
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
{
"name": "laravel/laravel",
"type": "project",
"description": "The skeleton application for the Laravel framework.",
"keywords": ["laravel", "framework"],
"license": "MIT",
"require": {
"php": "^8.1",
"filament/filament": "^3.0",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.10",
"laravel/sanctum": "^3.2",
"laravel/tinker": "^2.8"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.1",
"spatie/laravel-ignition": "^2.0"
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
]
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true,
"php-http/discovery": true
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
lucianosnchz
lucianosnchz12mo ago
Patrick Boivin
Patrick Boivin12mo ago
Ok, so this looks good... but your issue is that you're still on filament v3.0.0-alpha67 Can you try composer update -W filament/filament ?
lucianosnchz
lucianosnchz12mo ago
I did it the other way around too, installed laravel, changed composer json to dev, installed livewire 3 beta and filament. This is how filament gives an error, so I removed the livewire line, did composer update and installed filament and now I'm in this state
Abel Cobreros
Abel Cobreros12mo ago
Yeah I created an hour ago a new filament project and it installed the alpha121 version. Had to run a "composer update" to force it to get all the packages to their latest version. Weird.
lucianosnchz
lucianosnchz12mo ago
Yes, I saw it in another post and I did it. But the alpha version is still there
Patrick Boivin
Patrick Boivin12mo ago
@lucianosnchz If this is ok for you, I think you could remove composer.lock and vendor and run composer install again.
Abel Cobreros
Abel Cobreros12mo ago
I didn't install livewire manually though, just create a new laravel project and then filament. Filament will install livewire automatically.
lucianosnchz
lucianosnchz12mo ago
thanks you ! i try this
Shaung Bhone
Shaung Bhone12mo ago
delete composer.lock file first delete livewire in composer.json and install filament v3
Patrick Boivin
Patrick Boivin12mo ago
That's right, you should not need to specify a livewire version... if you do, you probably have an issue somewhere else
lucianosnchz
lucianosnchz12mo ago
Thank you!! I tried on another computer (MACOS) and remove the composer.lock install again and ALPHA no longer appears. From the beginning it appeared to me, I had to run everything again and there it was. In windows not yet, I don't know why it will be able to cache.
Patrick Boivin
Patrick Boivin12mo ago
Yeah this is weird... someone else is having issues on windows I think but I don't know if it's really related to the OS or not... One thing you can try is do laravel new testproject and try to install in this clean environment.
lucianosnchz
lucianosnchz12mo ago
yes, i installed the project 3 times from 0 as it is for testing filament. Thank you very much, I am new to the community, I joined discord yesterday. very good week
justgkp
justgkp12mo ago
This saved my day!🎉
Shaung Bhone
Shaung Bhone12mo ago
Glad to hear.