Filament V3 with webpack
Is Filament v3 still compatible with Webpack? I'm trying to update the project and create a new custom theme for Media Library Pro and I receive an error:
Typed property Filament\Support\Assets\Asset::$package must not be accessed before initialization
This is what i have in webpack.mix.js:
and this is what i have in AdminServiceProvider.php:
4 Replies
->theme()
should refer to the output file
Please also read #✅┊rules . Share the error and format your code.@Dennis Koch Thanks for the response. I've changed the paths and i'm receiveing the same issue.
In webpack.mix.js i have:
and in AdminPanelProvider.php:
https://flareapp.io/share/Bm0Y1qJP
Flare
Typed property Filament\Support\Assets\Asset::$package must not be accessed before initialization - The error occurred at https://luxgive.graffino.dev/admin
Hm, no idea why it is looking for
$package
for standard Filament, or why it's not defined as filament
. Did you clear your caches using artisan filament:upgrade
after the last update?Yes