From 8f13a018cb559b5c02e38b0ab89dfb79cb4e3ab6 Mon Sep 17 00:00:00 2001 From: futurefounder Date: Fri, 12 May 2023 12:03:52 +0200 Subject: [PATCH] fix build issues --- .eslintrc.json | 2 +- package-lock.json | 15 +++++ package.json | 1 + src/app/layout.js | 17 ----- src/app/page.js | 113 --------------------------------- src/app/page.tsx | 24 +++---- src/app/types/embed-react.d.ts | 1 + 7 files changed, 30 insertions(+), 143 deletions(-) delete mode 100644 src/app/layout.js delete mode 100644 src/app/page.js create mode 100644 src/app/types/embed-react.d.ts diff --git a/.eslintrc.json b/.eslintrc.json index a2ceebe..dffe840 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,3 +1,3 @@ { - "extends": ["next/babel", "next/core-web-vitals"] + "extends": ["next"] } diff --git a/package-lock.json b/package-lock.json index a7f35e5..db78983 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,6 +12,7 @@ "@types/node": "20.1.2", "@types/react": "18.2.6", "@types/react-dom": "18.2.4", + "@types/react-router": "^5.1.20", "eslint": "8.40.0", "eslint-config-next": "13.4.1", "flowbite": "^1.6.5", @@ -465,6 +466,11 @@ "tslib": "^2.4.0" } }, + "node_modules/@types/history": { + "version": "4.7.11", + "resolved": "https://registry.npmjs.org/@types/history/-/history-4.7.11.tgz", + "integrity": "sha512-qjDJRrmvBMiTx+jyLxvLfJU7UznFuokDv4f3WRuriHKERccVpFU+8XMQUAbDzoiJCsmexxRExQeMwwCdamSKDA==" + }, "node_modules/@types/json5": { "version": "0.0.29", "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", @@ -498,6 +504,15 @@ "@types/react": "*" } }, + "node_modules/@types/react-router": { + "version": "5.1.20", + "resolved": "https://registry.npmjs.org/@types/react-router/-/react-router-5.1.20.tgz", + "integrity": "sha512-jGjmu/ZqS7FjSH6owMcD5qpq19+1RS9DeVRqfl1FeBMxTDQAGwlMWOcs52NDoXaNKyG3d1cYQFMs9rCrb88o9Q==", + "dependencies": { + "@types/history": "^4.7.11", + "@types/react": "*" + } + }, "node_modules/@types/scheduler": { "version": "0.16.3", "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.3.tgz", diff --git a/package.json b/package.json index a6bc88a..43f280e 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "@types/node": "20.1.2", "@types/react": "18.2.6", "@types/react-dom": "18.2.4", + "@types/react-router": "^5.1.20", "eslint": "8.40.0", "eslint-config-next": "13.4.1", "flowbite": "^1.6.5", diff --git a/src/app/layout.js b/src/app/layout.js deleted file mode 100644 index c93f806..0000000 --- a/src/app/layout.js +++ /dev/null @@ -1,17 +0,0 @@ -import './globals.css' -import { Inter } from 'next/font/google' - -const inter = Inter({ subsets: ['latin'] }) - -export const metadata = { - title: 'Create Next App', - description: 'Generated by create next app', -} - -export default function RootLayout({ children }) { - return ( - - {children} - - ) -} diff --git a/src/app/page.js b/src/app/page.js deleted file mode 100644 index 9a69379..0000000 --- a/src/app/page.js +++ /dev/null @@ -1,113 +0,0 @@ -import Image from 'next/image' - -export default function Home() { - return ( -
-
-

- Get started by editing  - src/app/page.js -

-
- - By{' '} - Vercel Logo - -
-
- -
- Next.js Logo -
- -
- -

- Docs{' '} - - -> - -

-

- Find in-depth information about Next.js features and API. -

-
- - -

- Learn{' '} - - -> - -

-

- Learn about Next.js in an interactive course with quizzes! -

-
- - -

- Templates{' '} - - -> - -

-

- Explore the Next.js 13 playground. -

-
- - -

- Deploy{' '} - - -> - -

-

- Instantly deploy your Next.js site to a shareable URL with Vercel. -

-
-
-
- ) -} diff --git a/src/app/page.tsx b/src/app/page.tsx index 5686180..f40190b 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -24,7 +24,7 @@ export default function Home() { className="px-4 py-2 mr-3 text-sm font-medium text-center text-white bg-gray-800 rounded-lg hover:bg-fuchsia-700 focus:ring-4 focus:outline-none focus:ring-purple-300 md:mr-0 dark:bg-purple-600 dark:hover:bg-purple-700 dark:focus:ring-purple-800" > Sign Up{" "} - + Coming @@ -59,7 +59,7 @@ export default function Home() {