Skip to content

Commit

Permalink
Pin @types/react{-dom} to the same versions as react{-dom}
Browse files Browse the repository at this point in the history
Currently the installed types for react and react-dom are on `v18`, so they claim there are functions available, like `useSyncExternalStore()` that don't exist in react 17.
  • Loading branch information
ajbura authored and jasikpark committed May 7, 2023
1 parent da92ce3 commit 46dec92
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
22 changes: 8 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
"@rollup/plugin-inject": "5.0.3",
"@rollup/plugin-wasm": "6.1.1",
"@types/node": "18.11.18",
"@types/react": "18.0.26",
"@types/react-dom": "18.0.9",
"@types/react": "17.0.2",
"@types/react-dom": "17.0.2",
"@typescript-eslint/eslint-plugin": "5.46.1",
"@typescript-eslint/parser": "5.46.1",
"@vitejs/plugin-react": "3.0.0",
Expand Down

0 comments on commit 46dec92

Please sign in to comment.