cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jimi adrian (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Deleted] (CB-13694) UnhandledPromiseRejectionWarning when throwing errors
Date Tue, 05 Jun 2018 11:32:00 GMT

     [ https://issues.apache.org/jira/browse/CB-13694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

jimi adrian updated CB-13694:
-----------------------------
    Comment: was deleted

(was: npm i -g cordova
cordova create my-project
 cordova platform add android
 cordova run android

 

ChildProcess.whenDone (/my-project/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)

at emitTwo (events.js:126:13)
 at ChildProcess.emit (events.js:214:7)
 at maybeClose (internal/child_process.js:925:16)
 at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
 (node:14089) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated
either by throwing inside of an async function without a catch block, or by rejecting a promise
which was not handled with .catch(). (rejection id: 1)
 (node:14089) [DEP0018] 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

 

OS: Ubuntu 16.04
 node: v8.11.1
 npm: 6.1.0
 cordova: 8.0.0

 )

> UnhandledPromiseRejectionWarning when throwing errors
> -----------------------------------------------------
>
>                 Key: CB-13694
>                 URL: https://issues.apache.org/jira/browse/CB-13694
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-cli
>    Affects Versions: cordova@8.0.0
>         Environment: Mac OS High Sierra, Node v8.9.1
>            Reporter: Vito Macchia
>            Priority: Major
>
> Since updating to cordova-cli 8.0.0 (yesterday) I get UnhandledPromiseRejectionWarnings
instead or error prompts with error stacks, which also make difficult to identify bugs/broken
deps/missconfigurations.
> Example
> With cordova@7.1.0
> {code}
> cordova prepare
> Error: doc.find is not a function
> {code}
> With cordova@8.0.0
> {code}
> cordova prepare
> (node:2519) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection
id: 1): TypeError: doc.find is not a function
> (node:2519) [DEP0018] 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.
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message