I am using Jetstream as an starter kit. I have painfully resolved the route not found error by using the auto-import plugin.
Now Ziggy is not able to read routes.
I have routes defined in web.php and about.index is one of them.
Error: TypeError: Cannot read properties of undefined (reading 'about.index')
HandleInertiaRequests
public function share(Request $request): array
{
$ziggy = new Ziggy($group = null, $request->url());
return array_merge(parent::share($request), [
'auth' => [
'user' => $request->user(),
],
'ziggy' => $ziggy->toArray(),
]);
}
Hi,
I am using Jetstream as an starter kit. I have painfully resolved the route not found error by using the auto-import plugin. Now Ziggy is not able to read routes.
I have routes defined in web.php and
about.index
is one of them. Error: TypeError: Cannot read properties of undefined (reading 'about.index')HandleInertiaRequests
vite.config.js
ssr.js