Skip to content

Commit 55d05c1

Browse files
Make react-dom optional (#5603)
* Make react-dom optional Solves the npm install problem on react-native enviroments. npm warn Could not resolve dependency: npm warn peer react@"^19.1.1" from [email protected] npm warn node_modules/react-dom npm warn peer react-dom@">= 16.8.0" from [email protected] npm warn node_modules/styled-components * refactor: adjust * chore: add changeset --------- Co-authored-by: Evan Jacobs <[email protected]>
1 parent 2216822 commit 55d05c1

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎.changeset/free-guests-punch.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'styled-components': patch
3+
---
4+
5+
Make react-dom an optional peer dependency, clean up some unnecessary type peers.

‎packages/styled-components/package.json‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,11 @@
8686
"tslib": "2.8.1"
8787
},
8888
"peerDependencies": {
89-
"@types/react": ">= 16.8.0",
90-
"@types/react-dom": ">= 16.8.0",
9189
"react": ">= 16.8.0",
9290
"react-dom": ">= 16.8.0"
9391
},
9492
"peerDependenciesMeta": {
95-
"@types/react": {
96-
"optional": true
97-
},
98-
"@types/react-dom": {
93+
"react-dom": {
9994
"optional": true
10095
}
10196
},

0 commit comments

Comments
 (0)