Closed
Description
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:
npm ls react-scripts
(if you haven’t ejected): react-scripts@0.9.4node -v
: v7.7.2npm -v
: 4.1.2
Then, specify:
- Operating system: MacOS Seirra 10.12.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 commentedon Mar 9, 2017
I think it's duplicate of #1776
gaearon commentedon Mar 9, 2017
It is.
gaearon commentedon Mar 9, 2017
0.9.5 is out with the fix.
https://github.com/facebookincubator/create-react-app/releases/tag/v0.9.5