Skip to content

Advertised upgrade path isn't working with yarn #1347

Closed
@AsaAyers

Description

@AsaAyers

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 using yarn and proxy.

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 the Access-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 can rm 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:

  1. npm ls react-scripts (if you haven’t ejected): react-scripts@0.8.4
  2. node -v: v6.2.0
  3. npm -v:4.0.5

Then, specify:

  1. Operating system: Ubuntu Linux
  2. Browser and version: Chrome Version 55.0.2883.21 beta (64-bit)

Reproducible Demo

I don't know how to create an app with 0.7, lock the versions of everything and upgrade to 0.8.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions