Skip to content

Commit

Permalink
update @types/react version in examples (#57259)
Browse files Browse the repository at this point in the history
### What?
When I ran `npx create-next-app --example with-turbopack` and installed
dependencies using `yarn`, I found an typescript error(`'SomeComponent'
cannot be used as a JSX component.`).

<img
src="https://github.com/vercel/next.js/assets/51700274/f6c7e478-c0b1-4ea2-996f-4c0c78e3bb4b"
width=400 />

and I realized that the bug is due to the version of
@types/react(18.0.x).
you can check this issue on
[here](#42292 (comment))
too.

### Why?
It seems that there is an error occurring in the @types/react version
18.0.x.

### How?
It would be good to change the @types/react version to 18.2.8 in the
next.js examples.

I think this change will resolve [this
issue](#55080 (comment))
[NestJS
documentation](https://nextjs.org/docs/app/building-your-application/configuring/typescript#async-server-component-typescript-error)
also states to upgrade the version.

Co-authored-by: Lee Robinson <me@leerob.io>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Oct 27, 2023
1 parent f538232 commit 8d45aa9
Show file tree
Hide file tree
Showing 47 changed files with 47 additions and 47 deletions.
2 changes: 1 addition & 1 deletion examples/app-dir-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@next/mdx": "latest",
"@types/mdx": "2.0.3",
"@types/node": "18.11.18",
"@types/react": "18.0.27",
"@types/react": "18.2.8",
"@types/react-dom": "18.0.10",
"next": "latest",
"react": "18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/authsignal/passwordless-login/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"devDependencies": {
"@types/cookie": "^0.5.1",
"@types/node": "18.0.3",
"@types/react": "18.0.15",
"@types/react": "18.2.8",
"@types/react-dom": "18.0.6",
"typescript": "4.7.4"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-enterspeed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"devDependencies": {
"@types/node": "18.0.0",
"@types/react": "18.0.14",
"@types/react": "18.2.8",
"autoprefixer": "10.4.2",
"postcss": "8.4.31",
"tailwindcss": "^3.0.15",
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-kontent-ai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"dependencies": {
"@types/node": "18.11.18",
"@types/react": "18.0.27",
"@types/react": "18.2.8",
"@types/react-dom": "18.0.10",
"@kontent-ai/delivery-sdk": "^12.4.2",
"classnames": "2.3.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-makeswift/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"devDependencies": {
"@types/node": "17.0.41",
"@types/react": "18.0.12",
"@types/react": "18.2.8",
"typescript": "4.7.3"
}
}
2 changes: 1 addition & 1 deletion examples/cms-plasmic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"devDependencies": {
"@types/node": "17.0.41",
"@types/react": "18.0.12",
"@types/react": "18.2.8",
"typescript": "4.7.3"
}
}
2 changes: 1 addition & 1 deletion examples/convex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"devDependencies": {
"@types/node": "^18.15.3",
"@types/react-dom": "18.0.11",
"@types/react": "18.0.37",
"@types/react": "18.2.8",
"npm-run-all": "^4.1.5",
"typescript": "^4.9.5"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/data-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"devDependencies": {
"@types/node": "18.7.11",
"@types/react": "18.0.17",
"@types/react": "18.2.8",
"typescript": "4.7.4"
}
}
2 changes: 1 addition & 1 deletion examples/dynamic-routing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"devDependencies": {
"@types/node": "18.7.9",
"@types/react": "18.0.17",
"@types/react": "18.2.8",
"typescript": "4.7.4"
}
}
2 changes: 1 addition & 1 deletion examples/image-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"devDependencies": {
"@types/node": "18.15.3",
"@types/react": "18.0.28",
"@types/react": "18.2.8",
"typescript": "4.9.5"
}
}
2 changes: 1 addition & 1 deletion examples/middleware/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"devDependencies": {
"@types/node": "18.0.0",
"@types/react": "18.0.14",
"@types/react": "18.2.8",
"@types/react-dom": "18.0.5",
"eslint": "8.18.0",
"eslint-config-next": "12.2.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/next-css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"devDependencies": {
"@types/node": "18.11.5",
"@types/react": "18.0.23",
"@types/react": "18.2.8",
"@types/react-dom": "18.0.7",
"typescript": "4.8.4"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/radix-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"devDependencies": {
"@types/node": "18.8.0",
"@types/react": "18.0.21",
"@types/react": "18.2.8",
"autoprefixer": "10.4.12",
"postcss": "8.4.31",
"tailwindcss": "3.1.8",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-aws-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"devDependencies": {
"@types/node": "18.11.5",
"@types/react": "18.0.23",
"@types/react": "18.2.8",
"@types/react-dom": "18.0.7",
"typescript": "4.8.4"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/with-clerk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dependencies": {
"@clerk/nextjs": "^4.17.3",
"@types/node": "20.5.7",
"@types/react": "18.2.21",
"@types/react": "18.2.8",
"@types/react-dom": "18.2.7",
"next": "13.4.2",
"react": "18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-cloudinary/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"devDependencies": {
"@types/node": "18.11.9",
"@types/react": "18.0.25",
"@types/react": "18.2.8",
"autoprefixer": "^10.4.13",
"postcss": "^8.4.18",
"prettier": "^2.7.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-cypress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"devDependencies": {
"@types/node": "18.0.6",
"@types/react": "18.0.15",
"@types/react": "18.2.8",
"@types/react-dom": "18.0.6",
"cypress": "12.3.0",
"start-server-and-test": "1.15.2",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-emotion-swc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"devDependencies": {
"@types/node": "18.0.6",
"@types/react": "18.0.15",
"@types/react": "18.2.8",
"@types/react-dom": "18.0.6",
"typescript": "^4.7.4"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/with-fingerprintjs-pro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"devDependencies": {
"@types/node": "17.0.40",
"@types/react": "18.0.12",
"@types/react": "18.2.8",
"typescript": "4.7.3"
}
}
2 changes: 1 addition & 1 deletion examples/with-grafbase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"dependencies": {
"@types/node": "18.11.9",
"@types/react": "18.0.25",
"@types/react": "18.2.8",
"@types/react-dom": "18.2.7",
"graphql": "16.8.1",
"graphql-request": "5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-graphql-gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"devDependencies": {
"@types/node": "17.0.24",
"@types/react": "18.0.5",
"@types/react": "18.2.8",
"@types/react-dom": "18.0.1",
"typescript": "4.6.3"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/with-jest-babel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@testing-library/react": "13.2.0",
"@testing-library/user-event": "14.2.0",
"@types/jest": "29.5.5",
"@types/react": "18.0.9",
"@types/react": "18.2.8",
"babel-jest": "28.1.0",
"identity-obj-proxy": "3.0.0",
"jest": "28.1.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@testing-library/react": "14.0.0",
"@testing-library/user-event": "14.4.3",
"@types/jest": "29.5.5",
"@types/react": "18.2.21",
"@types/react": "18.2.8",
"jest": "29.6.4",
"jest-environment-jsdom": "29.6.4",
"typescript": "5.2.2"
Expand Down
2 changes: 1 addition & 1 deletion examples/with-loading/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"devDependencies": {
"@types/node": "18.7.5",
"@types/nprogress": "0.2.0",
"@types/react": "18.0.17",
"@types/react": "18.2.8",
"typescript": "4.7.4"
}
}
2 changes: 1 addition & 1 deletion examples/with-mantine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"devDependencies": {
"@types/node": "17.0.25",
"@types/react": "18.0.5",
"@types/react": "18.2.8",
"@types/react-dom": "18.0.1",
"prettier": "2.6.2",
"typescript": "4.6.3"
Expand Down
2 changes: 1 addition & 1 deletion examples/with-msw/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"devDependencies": {
"@types/node": "18.6.3",
"@types/react": "18.0.15",
"@types/react": "18.2.8",
"@types/react-dom": "18.0.6",
"typescript": "^4.7.4"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/with-next-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"devDependencies": {
"@types/node": "18.0.3",
"@types/react": "18.0.15",
"@types/react": "18.2.8",
"@types/react-dom": "18.0.6",
"typescript": "4.7.4"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/with-opentelemetry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"devDependencies": {
"@types/node": "18.7.11",
"@types/react": "18.0.17",
"@types/react": "18.2.8",
"typescript": "4.7.4"
}
}
2 changes: 1 addition & 1 deletion examples/with-particles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"devDependencies": {
"@types/node": "17.0.33",
"@types/react": "18.0.9",
"@types/react": "18.2.8",
"@types/react-dom": "18.0.4",
"eslint": "8.15.0",
"eslint-config-next": "latest",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-prefetching/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"devDependencies": {
"@types/node": "18.7.18",
"@types/react": "18.0.20",
"@types/react": "18.2.8",
"typescript": "4.8.3"
}
}
2 changes: 1 addition & 1 deletion examples/with-react-intl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"devDependencies": {
"@formatjs/cli": "5.1.0",
"@types/node": "18.7.23",
"@types/react": "18.0.21",
"@types/react": "18.2.8",
"babel-plugin-formatjs": "10.3.28",
"eslint-plugin-formatjs": "4.3.1",
"typescript": "4.8.4"
Expand Down
2 changes: 1 addition & 1 deletion examples/with-react-jss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"devDependencies": {
"@types/node": "18.7.15",
"@types/react": "18.0.18",
"@types/react": "18.2.8",
"typescript": "4.8.2"
}
}
2 changes: 1 addition & 1 deletion examples/with-redux/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"devDependencies": {
"@types/node": "20.3.1",
"@types/react": "18.2.12",
"@types/react": "18.2.8",
"@types/react-dom": "18.2.5",
"@types/redux-logger": "3.0.9",
"redux-logger": "3.0.6",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-segment-analytics-pages-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"devDependencies": {
"@types/node": "20.4.0",
"@types/react": "18.2.14",
"@types/react": "18.2.8",
"typescript": "5.1.6"
}
}
2 changes: 1 addition & 1 deletion examples/with-segment-analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"devDependencies": {
"@types/node": "20.4.0",
"@types/react": "18.2.14",
"@types/react": "18.2.8",
"typescript": "5.1.6"
}
}
2 changes: 1 addition & 1 deletion examples/with-sfcc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"devDependencies": {
"@tailwindcss/aspect-ratio": "^0.4.0",
"@types/node": "18.11.9",
"@types/react": "18.0.25",
"@types/react": "18.2.8",
"autoprefixer": "^10.4.0",
"postcss": "^8.4.5",
"tailwindcss": "^3.0.7",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-slate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"devDependencies": {
"@types/node": "18.7.5",
"@types/react": "18.0.17",
"@types/react": "18.2.8",
"typescript": "4.7.4"
}
}
2 changes: 1 addition & 1 deletion examples/with-storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@types/node": "18.15.12",
"@types/react": "18.0.37",
"@types/react": "18.2.8",
"@types/react-dom": "18.0.11",
"next": "13.3.0",
"react": "18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-stripe-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"devDependencies": {
"@types/node": "20.4.6",
"@types/react": "18.2.18",
"@types/react": "18.2.8",
"typescript": "5.1.6"
}
}
2 changes: 1 addition & 1 deletion examples/with-supabase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"devDependencies": {
"@types/node": "20.3.1",
"@types/react": "18.2.12",
"@types/react": "18.2.8",
"@types/react-dom": "18.2.5",
"encoding": "^0.1.13"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/with-supertokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"devDependencies": {
"@types/node": "18.7.13",
"@types/react": "18.0.17",
"@types/react": "18.2.8",
"typescript": "^4.8.2"
}
}
2 changes: 1 addition & 1 deletion examples/with-tigris/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"devDependencies": {
"@types/node": "18.11.2",
"@types/react": "18.0.21",
"@types/react": "18.2.8",
"@types/react-dom": "18.0.6",
"typescript": "4.8.4"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/with-turbopack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@tailwindcss/typography": "0.5.9",
"@types/ms": "0.7.31",
"@types/node": "18.11.17",
"@types/react": "18.0.26",
"@types/react": "18.2.8",
"@types/react-dom": "18.0.9",
"@vercel/git-hooks": "1.0.0",
"autoprefixer": "10.4.13",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-vanilla-extract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@vanilla-extract/css": "^1.11.0",
"@vanilla-extract/next-plugin": "^2.1.3",
"@types/node": "18.15.11",
"@types/react": "18.0.34",
"@types/react": "18.2.8",
"@types/react-dom": "18.0.11",
"next": "latest",
"react": "18.2.0",
Expand Down
Loading

0 comments on commit 8d45aa9

Please sign in to comment.