chris-ware / nova-breadcrumbs

Breadcrumbs for Laravel Nova
152 stars 44 forks source link

TypeError: Cannot read property '0' of undefined #89

Closed thibodelanghe closed 4 years ago

thibodelanghe commented 4 years ago

Nova version => 2.3.* breadcrumbs version => 1.2.20 Breadcrumbs is registered in the NovaService Provider and the Breadcrumbs Trait is used in the Resource.php. This error occurs on the index page of a resource. When i try to load a resource the nova front end loads but the table keeps loading

image image

chris-ware commented 4 years ago

Have you checked without having breadcrumbs enabled as the code you are looking at in your first screenshot is Nova code rather than the code powering breadcrumbs?

Also, can I ask why you are running Nova 2.3? I know that the package allows it as I left the end dependency as greater than version 2, but due to views being overwritten, you'll probably find compatibility issues anyway as 1.2.20 is compiled to support Nova 2.11. Ideally, you need to run the version of breadcrumbs that supports the version of Nova you have installed.

thibodelanghe commented 4 years ago

Have you checked without having breadcrumbs enabled as the code you are looking at in your first screenshot is Nova code rather than the code powering breadcrumbs?

Yes, from the moment i add the breadcrumb service provider to the nova service provider all the resources in the CMS break

chris-ware commented 4 years ago

I'd suggest updating Nova to the latest version or downgrading Breadcrumbs to the version that matches your Nova install, which would be 1.2.5 or 1.2.6.