Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Bumbag refuses to install #121

Open
infiniwave opened this issue May 19, 2021 · 2 comments
Open

Bumbag refuses to install #121

infiniwave opened this issue May 19, 2021 · 2 comments

Comments

@infiniwave
Copy link

Describe the bug
I created a fresh react project using CRA using the TypeScript template. Bumbag refuses to install due to dependency issues. It seems that it is having issues with React 17, maybe?

To reproduce
Create a (TypeScript) React project and try running npm install bumbag.

Expected behavior
Bumbag will install correctly

Running node v14 and latest react v17.0.2

npm WARN ERESOLVE overriding peer dependency
npm WARN Found: @emotion/react@11.1.5-2
npm WARN node_modules/@emotion/react
npm WARN   @emotion/react@"npm:@bumbag/emotion-react@11.1.5-2" from bumbag@2.0.0
npm WARN   node_modules/bumbag
npm WARN     bumbag@"*" from the root project
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer @emotion/react@"^11.0.0-rc.0" from @emotion/styled@11.1.5-0
npm WARN node_modules/@emotion/styled
npm WARN   @emotion/styled@"npm:@bumbag/emotion-styled@11.1.5-0" from bumbag@2.0.0
npm WARN   node_modules/bumbag
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   peer react@"*" from @testing-library/react@11.2.7
npm ERR!   node_modules/@testing-library/react
npm ERR!     @testing-library/react@"^11.2.7" from the root project
npm ERR!   peer react@"17.0.2" from react-dom@17.0.2
npm ERR!   node_modules/react-dom
npm ERR!     peer react-dom@"*" from @testing-library/react@11.2.7
npm ERR!     node_modules/@testing-library/react
npm ERR!       @testing-library/react@"^11.2.7" from the root project
npm ERR!     react-dom@"^17.0.2" from the root project
npm ERR!     1 more (bumbag)
npm ERR!   5 more (react-scripts, the root project, bumbag, @emotion/react, @emotion/styled)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"16.x" from conditional-wrap@1.0.0
npm ERR! node_modules/bumbag/node_modules/conditional-wrap
npm ERR!   conditional-wrap@"1.0.0" from bumbag@2.0.0
npm ERR!   node_modules/bumbag
npm ERR!     bumbag@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
@jxom
Copy link
Owner

jxom commented May 20, 2021

Hi! What if you try npm install --legacy-peer-deps?

@infiniwave
Copy link
Author

It seems that if I use yarn, it warns me but it ignores the issue. Bumbag works fine this way, however I get warnings a lot while using it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants