Skip to content

Commit 2dab0b7

Browse files
authored
Fix issue with NPM 7 throwing error (#216)
NPM 7 automatically installs peer dependencies. Trying to update to React 17 causes error when installing @ant-design/icons More info here: https://github.blog/2020-10-13-presenting-v7-0-0-of-the-npm-cli/ Based on the advice from Kent C. Dodds and Cory House, I updated peer dependency of React to be ">= 16.9.0" Tweets: https://mobile.twitter.com/kentcdodds/status/1325565636303482880
1 parent 4f96ee0 commit 2dab0b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"now-build": "npm run build"
4141
},
4242
"peerDependencies": {
43-
"react": "^16.9.0"
43+
"react": ">= 16.9.0"
4444
},
4545
"devDependencies": {
4646
"@types/enzyme": "^3.10.5",

0 commit comments

Comments
 (0)