diff --git a/examples/next-with-app-router/package.json b/examples/next-with-app-router/package.json index a80dff5276..2265822c8e 100644 --- a/examples/next-with-app-router/package.json +++ b/examples/next-with-app-router/package.json @@ -22,6 +22,6 @@ "@types/react-dom": "^18", "eslint": "^8", "eslint-config-next": "14.2.5", - "typescript": "^5" + "typescript": "4.7.4" } } diff --git a/examples/next-with-app-router/src/app/layout.tsx b/examples/next-with-app-router/src/app/layout.tsx index c46cb020b5..cd4343e222 100644 --- a/examples/next-with-app-router/src/app/layout.tsx +++ b/examples/next-with-app-router/src/app/layout.tsx @@ -1,7 +1,9 @@ +import { ReactNode } from 'react'; + export default function RootLayout({ children, }: Readonly<{ - children: React.ReactNode; + children: ReactNode; }>) { return ( diff --git a/examples/next-with-app-router/src/app/page.tsx b/examples/next-with-app-router/src/app/page.tsx index c6560d20f6..8cfe00f468 100644 --- a/examples/next-with-app-router/src/app/page.tsx +++ b/examples/next-with-app-router/src/app/page.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import { Heading } from '@lmc-eu/spirit-web-react/src'; +import React from 'react'; import './globals.scss'; const Home = () => { diff --git a/examples/next-with-app-router/tsconfig.json b/examples/next-with-app-router/tsconfig.json index 9bb90ae689..173877cef5 100644 --- a/examples/next-with-app-router/tsconfig.json +++ b/examples/next-with-app-router/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "useUnknownInCatchVariables": false, "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, @@ -19,7 +20,8 @@ ], "paths": { "@/*": ["./src/*"] - } + }, + "forceConsistentCasingInFileNames": true }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], "exclude": ["node_modules"] diff --git a/examples/next-with-app-router/yarn.lock b/examples/next-with-app-router/yarn.lock index 016d761f66..0ad0a00db4 100644 --- a/examples/next-with-app-router/yarn.lock +++ b/examples/next-with-app-router/yarn.lock @@ -2432,7 +2432,7 @@ __metadata: next: "npm:14.2.3" react: "npm:^18" react-dom: "npm:^18" - typescript: "npm:^5" + typescript: "npm:4.7.4" languageName: unknown linkType: soft @@ -3363,23 +3363,23 @@ __metadata: languageName: node linkType: hard -"typescript@npm:^5": - version: 5.5.4 - resolution: "typescript@npm:5.5.4" +"typescript@npm:4.7.4": + version: 4.7.4 + resolution: "typescript@npm:4.7.4" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 10/1689ccafef894825481fc3d856b4834ba3cc185a9c2878f3c76a9a1ef81af04194849840f3c69e7961e2312771471bb3b460ca92561e1d87599b26c37d0ffb6f + checksum: 10/f056b2313a7df95268ac63dc4ddcb7aed1b7d5a6bbc933d11c3fcd0a77712e16b24bdf4403acc529ade5c27a2a477e25124e899587e8ca3f19685c7ab954c6f3 languageName: node linkType: hard -"typescript@patch:typescript@npm%3A^5#optional!builtin": - version: 5.5.4 - resolution: "typescript@patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=379a07" +"typescript@patch:typescript@npm%3A4.7.4#optional!builtin": + version: 4.7.4 + resolution: "typescript@patch:typescript@npm%3A4.7.4#optional!builtin::version=4.7.4&hash=65a307" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 10/746fdd0865c5ce4f15e494c57ede03a9e12ede59cfdb40da3a281807853fe63b00ef1c912d7222143499aa82f18b8b472baa1830df8804746d09b55f6cf5b1cc + checksum: 10/cd6f51368ba0f8c458a44ca8b05684e9cda49acbb4e7dcf40c4720cd1534f68c2d139ec6f179bb9996e6fe9d0c7a04846db55a048f51fd2f3c41fbce0a004971 languageName: node linkType: hard