Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-13694

UnhandledPromiseRejectionWarning when throwing errors

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: cordova@8.0.0
    • Fix Version/s: None
    • Component/s: cordova-cli
    • Labels:
      None
    • Environment:

      Mac OS High Sierra, Node v8.9.1

      Description

      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

      cordova prepare
      Error: doc.find is not a function
      

      With cordova@8.0.0

      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.
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lamuertepeluda Vito Macchia
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: