-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
react is included in both dependencies and peerDependencies, react should not be included inside dependencies as it may cause react to be installed twice and collide with the main react installation. The alternative is to add react as a devDependency.
Fragment from `react-grid-resizable package.json':
"dependencies": {
"@types/styled-components": "~4.0.3",
"classnames": "^2.2.6",
"react": "^16.8.4",
"styled-components": "~4.0.3"
},
"peerDependencies": {
"react": "^16.8.0"
}This is happening in my cases and produces an error.
More info here https://reactjs.org/warnings/invalid-hook-call-warning.html#duplicate-react
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
