Closed
Description
Description
Bug
Expected behavior
npm start
should not return a UnhandledPromiseRejectionWarning
Actual behavior
cschroeter@pc:~/workspace/my-first-react-app$ npm start
> [email protected] start /home/cschroeter/workspace/my-first-react-app
> react-scripts start
(node:1863) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: "listener" argument must be a function
(node:1863) 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.
Environment
Run these commands in the project folder and fill in their results:
npm ls react-scripts
(if you haven’t ejected):
cschroeter@pc:~/workspace/my-first-react-app$ npm ls react-scripts
[email protected] /home/cschroeter/workspace/my-frist-react-app
└── [email protected]
node -v
:
v7.7.2
npm -v
:
4.3.0
Then, specify:
- Operating system:
Windows 10 in Linux Bash Shell Build 15048 (Creator Update)
To Reproduce
$ create-react-app my-first-react-app
$ cd my-first-react-app
$ npm start