create-react-app icon indicating copy to clipboard operation
create-react-app copied to clipboard

react-scripts pins fsevents to a version too old for Node 10

Open Jessidhia opened this issue 8 years ago • 2 comments

Is this a bug report?

Yes

Did you try recovering your dependencies?

Yes. I have also attempted working around it with a yarn resolutions field, but it seems yarn resolutions turn optional dependencies into required dependencies.

Which terms did you search for in User Guide?

fsevents

Environment

Environment:
  OS:  macOS 10.14
  Node:  10.5.0
  Yarn:  1.9.2
  npm:  6.1.0
  Watchman:  Not Found
  Xcode:  Xcode 10.0 Build version 10L201y
  Android Studio:  Not Found

Packages: (wanted => installed)
  react: ^16.3.1 => 16.4.1
  react-dom: ^16.3.1 => 16.4.1
  react-scripts: 2.0.0-next.3e165448 => 2.0.0-next.3e165448

Steps to Reproduce

(Write your steps here:)

  1. Use node >= 10.4.1 on macOS
  2. Create a new project with create-react-app
  3. https://github.com/strongloop/fsevents/issues/226 happens during yarn install

Expected Behavior

No build errors

Actual Behavior

Huge build error that is elaborated upon on https://github.com/strongloop/fsevents/issues/226


Updating fsevents to 1.2.4, or to a caret version (^1.2.4) is sufficient to avoid the build error.

Jessidhia avatar Aug 17 '18 05:08 Jessidhia

Updated on next.

Timer avatar Sep 21 '18 12:09 Timer

Had the same problem here, resolved by removing yarn.lock and re-run yarn install. Hope it can help...

iabotsiTC avatar Sep 24 '18 15:09 iabotsiTC