UnhandledPromiseRejectionWarning on Node 7.7.2
See original GitHub issueDescription
Bug
Expected behavior
npm start
should not return a UnhandledPromiseRejectionWarning
Actual behavior
cschroeter@pc:~/workspace/my-first-react-app$ npm start
> test@0.1.0 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
my-frist-react-app@0.1.0 /home/cschroeter/workspace/my-frist-react-app
└── react-scripts@0.9.4
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
Issue Analytics
- State:
- Created 7 years ago
- Reactions:34
- Comments:33 (20 by maintainers)
Top Results From Across the Web
how to solve UnhandledPromiseRejectionWarning on node?
UnhandledPromiseRejectionWarning : Unhandled promise rejection. This error originated either by throwing inside of an async function without a ...
Read more >Typeerror: Cannot Convert Undefined Or Null To Object
Im trying to create my own MongoDB connector using the MongoDB node.js driver. Just to mention the error is TypeError: Cannot convert undefined...
Read more >Node.js 15 release: Updated handling of rejections, npm 7, N ...
UnhandledPromiseRejectionWarning : Unhandled promise rejection. This error originated either by throwing inside of an async function without a ...
Read more >Changelog | Meteor API Docs
Changes to keep everything compatible with MongoDB Server 5.x and MongoDB Node.js driver 4.x. npm-mongo@4.3.1. Upgraded MongoDB Node.js ...
Read more >Encode to hex string: argument must be a string node.js-node.js
[Solved]-Encode to hex string: argument must be a string node.js-node.js ... Error: TypeError: "listener" argument must be a function in Node 7.7.2 ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
说中文撒大佬们
(We definitely should support Node 7 tho)