Skip to content

Commit 77a4eda

Browse files
committed
i hope the page deployement white error will fix now
1 parent 2a76606 commit 77a4eda

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed

package-lock.json

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"@eslint/js": "^9.21.0",
2121
"@types/react": "^19.0.10",
2222
"@types/react-dom": "^19.0.4",
23+
"@types/react-slick": "^0.23.13",
2324
"@vitejs/plugin-react": "^4.3.4",
2425
"autoprefixer": "^10.4.21",
2526
"eslint": "^9.21.0",

src/components/ErrorBoundary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
1515
this.state = { hasError: false };
1616
}
1717

18-
static getDerivedStateFromError(error: Error) {
18+
static getDerivedStateFromError() {
1919
return { hasError: true };
2020
}
2121

src/components/RepoCarousel.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ const RepoCarousel: React.FC<RepoCarouselProps> = ({ repos }) => {
6161
title={repo.title}
6262
description={repo.description}
6363
link={repo.link}
64+
category=''
6465
/>
6566
</div>
6667
))}

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineConfig } from 'vite'
22
import react from '@vitejs/plugin-react'
33

4-
// https://vite.dev/config/
54
export default defineConfig({
65
plugins: [react()],
6+
base: '/GithubRepoExplorer/', // 👈 This must match your repo name exactly
77
})

0 commit comments

Comments
 (0)