Closed bcorcoran closed 4 years ago
The route viewer code doesn't contain any instances of this.router.filter
. The closest is this.routes.filter
, but since this.routes
is instantiated to an empty array, the filter
function should always be available.
Can you provide a stack trace, and the full line or section of code causing the error?
Well, I don't have dev mode enabled on Nova, but:
If you can tell me what you'd like me to try, I'm happy to try it, but I don't have a lot of time to debug at the moment.
Actually I just looked again and ran Nova.request().get('/nova-vendor/route-viewer/routes').then(response => { console.log(response.data) })
in the console and it gave me my index page... meaning the routes aren't working properly. The route is listed in php artisan route:list
but I suspect there's something going on with Sbine\RouteViewer\Http\Controllers\Api@getRoutes
Two things that could help:
/nova-vendor/route-viewer/routes
storage/logs/laravel.log
) for an error messageOK, disregard this. I am running an SPA and I had the following rule:
Route::any('{all}', function() { return view('index'); })
->middleware('auth')
->where(['all' => '^(?!admin|nova-api).*$']);
I added nova-vendor
to the list of exceptions and it's working just fine. Sorry for the trouble!
Laravel 6.3.0 Laravel Nova 2.5.0 PHP 7.3
I'm getting a javascript error when attempting to view the Router Viewer. I get no results (I can successfully see them using
php artisan route:list
and this.router.filter is not a function error in the browser console.