question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UnhandledPromiseRejectionWarning on Node 7.7.2

See original GitHub issue

Description

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:

  1. 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
  1. node -v:
v7.7.2
  1. npm -v:
4.3.0

Then, specify:

  1. 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:closed
  • Created 7 years ago
  • Reactions:34
  • Comments:33 (20 by maintainers)

github_iconTop GitHub Comments

24reactions
shiziChingcommented, Feb 7, 2018

说中文撒大佬们

24reactions
gaearoncommented, Mar 9, 2017

(We definitely should support Node 7 tho)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found