RootTagMissingFromViewException error when loading Custom Dashboard with custom widgets

I have a custom dashboard with many widgets, when i first login after a 'composer i / update' i keep getting this error but it disappears after refreshing the page. Any help?
No description
11 Replies
LeandroFerreira
LeandroFerreira5mo ago
Did you add a root tag in the widgets?
<div>
<!-- your code... -->
</div>
<div>
<!-- your code... -->
</div>
marsep95
marsep95OP5mo ago
This is how all my widgets are
No description
LeandroFerreira
LeandroFerreira5mo ago
The root tag should be x-filament-widgets::widget. Have you tried disabling some widgets to identify where the issue might be?
marsep95
marsep95OP5mo ago
Yes, I have tried one by one. No one solves it.
LeandroFerreira
LeandroFerreira5mo ago
weird.. php artisan about --only=Filament what is the filament version? maybe the issue isn't in the widgets...
marsep95
marsep95OP5mo ago
Anyway, I solved it ignoring this type of Exception class. Filament version is 3.2.92
toeknee
toeknee5mo ago
Inspect your browser as livewire will tell you the error and you should narrow it down, ignoring the exception is not a good solution.
LeandroFerreira
LeandroFerreira5mo ago
not related to the issue, you could create a custom theme to customize the css https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme
marsep95
marsep95OP5mo ago
I know that ignoring exception is like hiding an elephant under the rug, but for now, while I inspect furthermore, I have to, because it's very annoying. The browser is not giving any helping information. Tried to debug, but don't know where to breakpoint.
LeandroFerreira
LeandroFerreira5mo ago
Consider creating a fresh install to see if the issue persists. If the same problem occurs, please share the code on GitHub, and I can take a look.
marsep95
marsep95OP5mo ago
I appreciate your help, sir! Thank you!
Want results from more Discord servers?
Add your server