Skip to content

Commit

Permalink
Fix issue omerg#4 Invalid hook call on react
Browse files Browse the repository at this point in the history
I believe removing react and react-dom from devs to dev devs should resolve the issue with the error:

Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same app See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
  • Loading branch information
gw-versent committed Sep 16, 2022
1 parent 40f0ed7 commit 5761711
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
"d3-scale": "^3.2.3",
"d3-scale-chromatic": "^2.0.0",
"d3-shape": "^2.0.0",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"styled-components": "^4.3.2"
},
"peerDependencies": {
Expand Down Expand Up @@ -84,6 +82,8 @@
"@storybook/react": "^6.1.9",
"@storybook/theming": "latest",
"prop-types": "^15.7.2",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-scripts": "3.0.1",
"tabletop": "^1.5.2"
}
Expand Down

0 comments on commit 5761711

Please sign in to comment.