New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yarn add doesn't install latest version #27
Comments
@ArjithN true this is a major issue, not sure whether this has something to do with yarn itself. What is the story with npm, did you get a chance to check? |
No, I didn't check before. But now when I tried to use npm in new project, I get this error > npm i styled-wind@beta styled-components 12:07pm
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: sws@0.1.0
npm ERR! Found: react@17.0.1
npm ERR! node_modules/react
npm ERR! react@"^17.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.0.0" from styled-wind@0.0.0-beta.7
npm ERR! node_modules/styled-wind
npm ERR! styled-wind@"0.0.0-beta.7" 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!
npm ERR! See /Users/arjithn/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/arjithn/.npm/_logs/2020-12-08T06_37_56_823Z-debug.log Looks like its trying to install same version as yarn's. But why it fails.. I have no clue. |
@ArjithN I think because we have peer dependency which looks for react 16 and ur latest cra is using react 17, need to fix this |
Describe the bug
Following the steps in documentation to add styled-wind installs older version(0.0.0-beta.7) of the package. This version has some bugs, thus the examples given in the docs don't work as expected.
To Reproduce
Steps to reproduce the behavior:
npx create-react-app styled-wind-sandbox
yarn add styled-wind@beta styled-components
src/App.js
to followingExpected behavior
I have checked with the latest version (13), in codesandbox all of them seem to work. We expect yarn add should install latest working version available. It will be easier for people to just start to play with the project.
Desktop:
Additional context
Tis' my First Issue here. So suggestions are welcome!! Like if it is valid, etc.
The text was updated successfully, but these errors were encountered: