Unable to install Filament
Hi all!
After running
composer require filament/filament
, I tried to access to /admin
page but it gives a 404. When I try to create a filament user, it throws a cryptic error.40 Replies
am I forgetting a step?
uh oh
make sure you include
^2.0
in the command when installing
composer remove filament/filament
firstI think I did that. Let's see
yep, same thing
what blade-heroicons version are you on
we dont support 2.x yet
2.1.0
ah okay, good to know
But is that why I am getting that error?
yes, for reasons. i know its unclear
Alright, no problem
its an issue with packagist, it installed a broken version of filament because it supported heroicons 2.x. i will contact packagist to get it removed
That also explains why it did work in a clean laravel project, just tried that
Any timeline on supporting 2.x? Or any feed I can follow to see when this gets released?
Most of my projects use
blade-ui-kit/blade-heroicons
2.x so I can't use filament now anywhere 😬Support will come with v3, but the ETA for that depends on Livewire 3
Got it, thanks for the swift responses!
I've contacted packagist to ensure it doesnt install the broken version
And what about the other filament packages? Such as tables/forms? Are they supposed to work in my apps with blade-heroicons 2.x?
maybe not 😁
Wait it also doesn't work in a fresh project (or well, a project that doesn't have blade heroicons installed). Any ideas?
filament/tables
specifically
"No commands in the tables namespace"php artisan about
which version of filament"filament/tables": "^2.0"
v2.17.33
I managed to get it working btw, but only with the "in existing projects" guide
Ah!
I see what's wrong. The docs are out of date
php artisan notifications:install
has been changed to php artisan filament:install --tables
I guess?
I just noticed the filament:install
command@yaeger no
you essentially need to get off of v2.17.33
that is the broken version
some other dependency is forcing you to download that broken one
in composer.json, try bumping the version to ^2.17.42 and composer update
that should either work, or give you can error message which you can fix
once you are off of v2.17.33, everything in the docs will work
Okay thanks. I took a step back, removed filament/notifications and tried upgrading
filament/tables
to 2.17.42
. Now everywhere I render tables, it gives the following error:do you have views published?
please delete all published views and run
filament:upgrade
That should be in a
vendor/
directory here, right?yeah thats good that it doesnt exist
filament:upgrade
did somethinggood
that clears views etc
Ah now I got the error I also had earlier 😬
Did filament/tables recently add
laravel/akaunting
dependency?not recently, it's always been there
akaunting/laravel-money
yea that one
what error did you get
Hm interesting
This needs some explanation
I have a
x-money
component myself
can you share the error url
i doubt that is anything to do with us
Flare
Object of class Money\Money could not be converted to string - The error occurred at http://localhost:8001/dashboard/accounts/993adfdc-c0af-4803-a47a-ee3bea7c4db0
yea the problem here is:
I have a component in my project called
x-money
which takes :amount
as Money\Money\
But akaunting/laravel-money
also makes an x-money
available, which takes a string as amount
parameter 😂
interestingoof
in v3 we are removing that dependency
no need for it
we are using PHP's built in money formatting
Ah that explains why this didn't break in that broken build
cuz that broken build is basically v3, right?
2.17.33
I'll just rename my component for now
x-formatted-money or smth
Got everything working. Notifications as well now. Thanks!
Love what you folks built 👍
yup lol, i tagged the wrong branch