Skip to content

Upgrade Node to 7.7.2 prevents react-scripts from running #1782

Closed
@caseybaggz

Description

@caseybaggz

Can you reproduce the problem with latest npm?

yes

Description

When upgraded to Node 7.7.2 then running yarn start, react-scripts errored and prevented running.

This only happens with yarn start. yarn test & build work fine.

Actual behavior

yarn start v0.21.3
$ react-scripts start
(node:23359) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: "listener" argument must be a function
(node:23359) DeprecationWarning: Unhandled promise rejections are deprecated.In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
✨  Done in 0.90s.

Still received error after running:

$ rm -rf node_modules
$ yarn cache clean
$ npm cache clean
$ yarn

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.9.4
  2. node -v: v7.7.2
  3. npm -v: 4.1.2

Then, specify:

  1. Operating system: MacOS Seirra 10.12.2
  2. Browser and version: na

Reproducible Demo

Created new app and ran yarnpkg start and still got error:

$ react-scripts start
(node:30965) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: "listener" argument must be a function
(node:30965) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
✨  Done in 1.07s.

Activity

vhain

vhain commented on Mar 9, 2017

@vhain

I think it's duplicate of #1776

gaearon

gaearon commented on Mar 9, 2017

@gaearon
Contributor

It is.

gaearon

gaearon commented on Mar 9, 2017

@gaearon
Contributor
locked and limited conversation to collaborators on Jan 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @gaearon@vhain@caseybaggz

        Issue actions

          Upgrade Node to 7.7.2 prevents react-scripts from running · Issue #1782 · facebook/create-react-app