system-ui / theme-ui

Build consistent, themeable React apps based on constraint-based design principles

Home Page:https://theme-ui.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Theme-ui dosen't install with react version ^17.0.2

APiligrim opened this issue · comments

Describe the bug
Hello team at Theme-UI,

I was trying to install theme-ui to an existing project and when I ran npm install theme-ui @emotion/react the error said that theme-ui 's version 0.15.4 is lower than my current react version ^17.0.2.

Would theme-ui's dependencies be updated anytime soon? Or are there any other way to fix this issue aside from downgrading my current version of react?

Thank you for your help!

To Reproduce
Install Theme-ui on a project with react version 17.0.2.

Error Message


! node_modules/react
npm ERR!   react@"^17.0.2" from the root project
npm ERR!   peer react@">=16.8.0" from @emotion/react@11.10.5
npm ERR!   node_modules/@emotion/react
npm ERR!     @emotion/react@"*" from the root project
npm ERR!     peer @emotion/react@"^11" from @theme-ui/core@0.15.4
npm ERR!     node_modules/@theme-ui/core
npm ERR!       @theme-ui/core@"*" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@">=18" from @theme-ui/core@0.15.4
npm ERR! node_modules/@theme-ui/core
npm ERR!   @theme-ui/core@"*" from the root project