-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Advertised upgrade path isn't working with yarn #1347
Comments
If you use Yarn, shouldn't you be updating with Yarn too? Does this work?
|
No, that has the same problem. I think the problem is that |
It's a bit hard to say what's going wrong, help looking into it is appreciated. This could be a Yarn bug for example.
I'd be surprised if some change in 0.8 is suddenly incompatible with the version of webpack used by 0.7. But I'm not sure. What makes you think this is the case? |
I don't think it's incompatible exactly, but the behavior changed. In my case it changes from giving me an Is there a way for me to run |
Isn't this #1212? Does it break your use case? |
That is the same symptom, but I think I'm making progress. I reset my project I created a new project that is running 0.7.0 in
https://github.com/AsaAyers/cra-1374/blob/master/tmp.diff shows the difference between Do you think this is worth pursuing any further? |
You would need to find which package was responsible for the behavior change you are observing. It is not clear to me. |
Did you find the cause? |
I think I found the package causing the error, but I don't understand why or how.
I don't understand what |
Can you reproduce the problem with latest npm?
No, when I followed the
npm
instructions here it seemed to work.yarn.lock
seems to be the issue here.Description
I have a project using
react-scripts@0.7.0
usingyarn
andproxy
.Reset my node_modules for 0.7.0:
rm -rf node_modules/; yarn
Upgrade:
npm install --save-dev --save-exact react-scripts@0.8.4
This is a symptom, not the actual problem: At this point
webpack
doesn't rewrite theAccess-Control-Allow-Origin
header and my app won't run.I also tried
yarn upgrade react-scripts
and it gets the same result.Workaround
After updating
package.json
I canrm yarn.lock && yarn
and everything works. But I didn't find that until I came to file this issue and your instructions insisted I try with npm. I suspect the same problem applies to shrinkwrapped projects, but mine isn't so I can't verify that.This doesn't seem like a good solution as I just upgraded an unknown number of packages. The diff of
yarn.lock
is 5,162 lines.Environment
Run these commands in the project folder and fill in their results:
npm ls react-scripts
(if you haven’t ejected): react-scripts@0.8.4node -v
: v6.2.0npm -v
:4.0.5Then, specify:
Reproducible Demo
I don't know how to create an app with 0.7, lock the versions of everything and upgrade to 0.8.
The text was updated successfully, but these errors were encountered: