From 5571b4e62c4e6a371cfcf1fa90caf09ec851134e Mon Sep 17 00:00:00 2001 From: David Martinelli Date: Sun, 18 Feb 2024 14:49:40 +0000 Subject: [PATCH] add missing '/' character for "base" prop in vite.config.ts file --- src/routes.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/routes.tsx b/src/routes.tsx index 22d7e47..b74d32a 100644 --- a/src/routes.tsx +++ b/src/routes.tsx @@ -1,8 +1,10 @@ import { Blog } from '@pages/Blog'; import { Post } from '@pages/Post/Post'; -import { createBrowserRouter } from 'react-router-dom'; +import { createBrowserRouter, useRouteError } from 'react-router-dom'; function MyFallbackComponent() { + let error = useRouteError(); + console.error(error); return (

Something went wrong:

@@ -12,7 +14,7 @@ function MyFallbackComponent() { export const routes = createBrowserRouter([ { - path: '/', + path: '/github-blog', element: , errorElement: , },