Creating a widget returns an error.
I have a widget on my panel and it was working fine. I have bumped composer dependencies, run the upgrade command and cleared views, but I now get an error;
If I follow the stats overview documentation to create a new widget and add it to my dashboard, I get the same error.
If I follow the stats overview documentation to create a new widget and add it to my dashboard, I get the same error.
Solution
I was using
getHeaderWidgets in the dashboard page. I have removed this and setup the widgets in the Panel configuration now and they work correctly.