F
Filamentβ€’5mo ago
Guybrush

Syntax error in install (L10, PHP8.3) - Fixed

https://flareapp.io/share/v5pj18MP Anyone seen this before? I tried downgrading to v2 and got a different error. Seems there are several syntax errors being generated in the cached views, IE
window.$tooltip = <?php echo is_array() ? json_encode() : '\''..'\''; ?>;
window.$tooltip = <?php echo is_array() ? json_encode() : '\''..'\''; ?>;
Running into this error immediately after installing panel builder with the defaults Solution: appstract/laravel-blade-directives breaks directives registered by filament/livewire
Solution:
Finally found it!
"appstract/laravel-blade-directives": "^0.4.5",
"appstract/laravel-blade-directives": "^0.4.5",
likely competing with a directive registered by livewire or filament...
Jump to solution
7 Replies
Guybrush
GuybrushOPβ€’5mo ago
This is an existing application I'm attempting to install filament on top of. No existing usage of Livewire Oddly I also get this when I try to create a filament-user
Filament has not been installed yet: php artisan filament:install --panels
Filament has not been installed yet: php artisan filament:install --panels
Recreated this issue in v2 as well, downgrading things to match Suspect there's something weird about my app that's causing a conflict since it doesn't seem like anyone else is running into this issue, just not sure what it is
Dennis Koch
Dennis Kochβ€’5mo ago
I'd try to remove ServiceProviders until is works and then pinpoint what's causing this
Guybrush
GuybrushOPβ€’5mo ago
Problem is, FIlament is the only custom provider I have registered
'providers' => ServiceProvider::defaultProviders()->merge([
// Application Service Providers...
App\Providers\AppServiceProvider::class,
App\Providers\BroadcastServiceProvider::class,
App\Providers\AuthServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\Filament\AdminPanelProvider::class,
App\Providers\RouteServiceProvider::class,
App\Providers\FakerServiceProvider::class,
])->toArray(),
'providers' => ServiceProvider::defaultProviders()->merge([
// Application Service Providers...
App\Providers\AppServiceProvider::class,
App\Providers\BroadcastServiceProvider::class,
App\Providers\AuthServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\Filament\AdminPanelProvider::class,
App\Providers\RouteServiceProvider::class,
App\Providers\FakerServiceProvider::class,
])->toArray(),
Dennis Koch
Dennis Kochβ€’5mo ago
No packages that auto register anything? Check your addition to your own provider
Guybrush
GuybrushOPβ€’5mo ago
Ahhhh
Solution
Guybrush
Guybrushβ€’5mo ago
Finally found it!
"appstract/laravel-blade-directives": "^0.4.5",
"appstract/laravel-blade-directives": "^0.4.5",
likely competing with a directive registered by livewire or filament
Guybrush
GuybrushOPβ€’5mo ago
@Dennis Koch thanks for the point in the right direction πŸ™
Want results from more Discord servers?
Add your server