UnhandledPromiseRejectionWarning when ionic cordova build --release android

XxSTREKxX

ionic cordova build --release androidを使おうとすると、このエラーメッセージが表示されます

(ノード:1512)UnhandledPromiseRejectionWarning:未処理のプロミス拒否。このエラーは、catchブロックなしで非同期関数の内部をスローするか、.catch()で処理されなかったpromiseを拒否することによって発生しました。(拒否ID:1)(ノード:1512)[DEP0018]非推奨警告:未処理のプロミス拒否は非推奨になりました。将来、処理されないpromise拒否は、ゼロ以外の終了コードでNode.jsプロセスを終了します。

あなたの答えをありがとう!

ブラックベリー

この警告は、promiseを呼び出し、catchブロックを追加しない場合に発生します。約束の呼び出しが拒否されると、catchブロックが呼び出されます。

例えば:

var foo = function () {
    fooPromise
        .then(function (res) {
            // Do something with the response of the promise
        })
        .catch(function (err) {
            // handle the error 
        });
};

詳細については、Javascriptのドキュメントを確認してください:ここ

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

HTTPS blocked for Ionic build --release android apk

分類Dev

Ionic Cordova Build Error

分類Dev

Google Maps on Ionic Framework/Cordova not working on android build

分類Dev

Execution failed for task ':app:mergeReleaseResources' when using ionic build with--release tag

分類Dev

ionic cordova build android:エラー:EACCESを生成します

分類Dev

Cordova release built APK cannot be installed on Android

分類Dev

Cordova android build error on Ubuntu

分類Dev

ionic cordova build ios --emulator dont show fail or success build

分類Dev

"ionic cordova run android" not working with [email protected]

分類Dev

Ionic 3 prod release build issue with intellij-core-26.0.1

分類Dev

Visual Studio 2015 Cordova Ionic 2 not updating html files on build

分類Dev

Ionic 2: How to use custom build Cordova Plugin

分類Dev

Ionic 3/Cordova: app runs via Ionic CLI but not through Xcode (build in Xcode succeeds)

分類Dev

ionic run android: Build failed with an exception

分類Dev

Detect build type (debug/release) in visual studio when using CMake

分類Dev

Android Gradle build release EXCEPTION FROM SIMULATION error

分類Dev

Adding release and debug subdirectories to Android build with Gradle and CMake

分類Dev

Not able to build Cordova Project for Android using its Latest Version

分類Dev

UnhandledPromiseRejectionWarning when nesting rest calls

分類Dev

Ionic : LocalFileSystem is not defined in Cordova

分類Dev

ionic build iosは成功しましたが、ionic build ios--releaseは失敗しました

分類Dev

ionicがandroid-buildを生成しない

分類Dev

Ionic Capacitor Gradle build failed after updating android studio to 4.0

分類Dev

UnhandledPromiseRejectionWarning:

分類Dev

Can't build Android platform in Cordova 5.0.0 with build.bat: Command failed with exit code 8

分類Dev

ionic2 Uncaught(in promise):ReferenceError:cordova is not defined .. when using InAppBrowserplugin

分類Dev

Ionic 4、Android Studio、Gradle、Java jdkまたはCordovaエラー

分類Dev

Ionic / CordovaおよびAndroid 64ビットの要件

分類Dev

Ionic 3でcordova-plugin-android-permissionsを使用する方法は?

Related 関連記事

  1. 1

    HTTPS blocked for Ionic build --release android apk

  2. 2

    Ionic Cordova Build Error

  3. 3

    Google Maps on Ionic Framework/Cordova not working on android build

  4. 4

    Execution failed for task ':app:mergeReleaseResources' when using ionic build with--release tag

  5. 5

    ionic cordova build android:エラー:EACCESを生成します

  6. 6

    Cordova release built APK cannot be installed on Android

  7. 7

    Cordova android build error on Ubuntu

  8. 8

    ionic cordova build ios --emulator dont show fail or success build

  9. 9

    "ionic cordova run android" not working with [email protected]

  10. 10

    Ionic 3 prod release build issue with intellij-core-26.0.1

  11. 11

    Visual Studio 2015 Cordova Ionic 2 not updating html files on build

  12. 12

    Ionic 2: How to use custom build Cordova Plugin

  13. 13

    Ionic 3/Cordova: app runs via Ionic CLI but not through Xcode (build in Xcode succeeds)

  14. 14

    ionic run android: Build failed with an exception

  15. 15

    Detect build type (debug/release) in visual studio when using CMake

  16. 16

    Android Gradle build release EXCEPTION FROM SIMULATION error

  17. 17

    Adding release and debug subdirectories to Android build with Gradle and CMake

  18. 18

    Not able to build Cordova Project for Android using its Latest Version

  19. 19

    UnhandledPromiseRejectionWarning when nesting rest calls

  20. 20

    Ionic : LocalFileSystem is not defined in Cordova

  21. 21

    ionic build iosは成功しましたが、ionic build ios--releaseは失敗しました

  22. 22

    ionicがandroid-buildを生成しない

  23. 23

    Ionic Capacitor Gradle build failed after updating android studio to 4.0

  24. 24

    UnhandledPromiseRejectionWarning:

  25. 25

    Can't build Android platform in Cordova 5.0.0 with build.bat: Command failed with exit code 8

  26. 26

    ionic2 Uncaught(in promise):ReferenceError:cordova is not defined .. when using InAppBrowserplugin

  27. 27

    Ionic 4、Android Studio、Gradle、Java jdkまたはCordovaエラー

  28. 28

    Ionic / CordovaおよびAndroid 64ビットの要件

  29. 29

    Ionic 3でcordova-plugin-android-permissionsを使用する方法は?

ホットタグ

アーカイブ