ionic-team / ionic-team/ionic-cli

Console.error before LAUNCH SUCCESS during build for Android

Đang mở
#3,016 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
needs investigation
Ngôn ngữ chính
TypeScript
Star
2k
Fork
682
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Description:**
After running the command:

`ionic cordova run android -lc`

There is a console.error shown but it is not possible to read the error.
Apparently is a ionic-cli error log because it is shown before my app starts (I have logged constructor and device ready)

```
BUILD SUCCESSFUL

Total time: 12.527 secs
Built the following apk(s):
/home/pablo/projects/fpt3/platforms/android/build/outputs/apk/android-debug.apk

ANDROID_HOME=/home/pablo/Android/Sdk
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
No target specified, deploying to device 'BY900E5BZV'.

Skipping build...
Built the following apk(s):
/home/pablo/projects/fpt3/platforms/android/build/outputs/apk/android-debug.apk

Using apk: /home/pablo/projects/fpt3/platforms/android/build/outputs/apk/android-debug.apk

Package name: com.pgapps.fpt
[15:26:28] console.error: Error [object Object]
LAUNCH SUCCESS

[15:26:36] console.log: app constructor
[15:26:36] console.log: Angular is running in the development mode. Call enableProdMode() to enable the production
mode.
[15:26:36] console.log: deviceready has not fired after 5 seconds.
[15:26:37] console.log: Ionic Native: deviceready event fired after 4539 ms
[15:26:37] console.log: app READY
```

**Steps to Reproduce:**

**Output:**

**My `ionic info`:**

```
cli packages: (/usr/lib/node_modules)

@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 6.5.0

local packages:

@ionic/app-scripts : 3.0.1
Cordova Platforms : android 6.1.2
Ionic Framework : ionic-angular 3.9.2

System:

Android SDK Tools : 25.2.5
Node : v6.13.1
npm : 3.10.10
OS : Linux 4.4

Environment Variables:

ANDROID_HOME : /home/pablo/Android/Sdk

Misc:

backend : pro
```

**Other Information:**

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.