White screen when trying to load a widget to a blade file

So I have a blade file and im trying to put load a widget within it. However, I get a blank screen and an error in the console. Any ideas?

<?php

namespace App\Filament\App\Widgets;

use Filament\Widgets\Widget;
use Filament\Widgets\StatsOverviewWidget as BaseWidget;
use Filament\Widgets\StatsOverviewWidget\Stat;

class NewUserCount extends BaseWidget
{
    protected static string $view = 'filament.app.widgets.new-user-count';

    protected function getStats(): array
    {
        return [
            Stat::make('Unique views', '192.1k'),
            Stat::make('Bounce rate', '21%'),
            Stat::make('Average time on page', '3:12'),
        ];
    }
}
image.png
image.png
Solution
Ohh, i see. It should be made in Livewire directory
Was this page helpful?