Skip to content

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

Closed

Description

@APiligrim

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

Activity

  1. locked and limited conversation to collaborators on Nov 20, 2022
  2. converted this issue into a discussion #2364 on Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions