NativeScript / NativeScript/nativescript-cli

getting error in main entry

オープン
#5,360 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
JavaScript
スター
1.1k
フォーク
204
平均マージ
1日 9時間
マージ済み PR(30日)
8

説明

Version: webpack 4.27.1
Time: 45160ms
Built at: 27/08/2020 9:18:08 am
Asset Size Chunks Chunk Names
bundle.js 365 KiB bundle [emitted] bundle
fonts/fa-brands-400.ttf 131 KiB [emitted]
fonts/fa-regular-400.ttf 39.1 KiB [emitted]
fonts/fa-solid-900.ttf 204 KiB [emitted]
package.json 112 bytes [emitted]
runtime.js 71.4 KiB runtime [emitted] runtime
tns-java-classes.js 0 bytes [emitted]
vendor.js 16.6 MiB vendor [emitted] vendor
Entrypoint bundle = runtime.js vendor.js bundle.js
[../$$_lazy_route_resource lazy recursive] ../$$_lazy_route_resource lazy namespace object 160 bytes {bundle} [built]
[./app.scss] 121 KiB {bundle} [built]
[./app/app.component.html] 329 bytes {bundle} [built]
[./app/app.component.ts] 896 bytes {bundle} [built]
[./app/app.module.ts] 1.36 KiB {bundle} [built]
[./app/app.routing.ts] 653 bytes {bundle} [built]
[./app/menu/menu.component.css] 19 bytes {bundle} [built]
[./app/menu/menu.component.html] 1.05 KiB {bundle} [built]
[./app/menu/menu.component.ts] 1.09 KiB {bundle} [built]
[./app/services/dish.service.ts] 1.44 KiB {bundle} [built]
[./app/services/process-httpmsg.service.ts] 784 bytes {bundle} [built]
[./app/shared/baseurl.ts] 51 bytes {bundle} [built]
[./main.ts] 1.84 KiB {bundle} [built]
[./package.json] 100 bytes {bundle} [optional] [built]
+ 627 hidden modules
Webpack compilation complete. Watching for file changes.
Webpack build done!
Project successfully prepared (android)
Successfully transferred bundle.js on device d5cea600.
Successfully transferred runtime.js on device d5cea600.
Successfully transferred vendor.js on device d5cea600.
Restarting application on device d5cea600...
Successfully synced application org.nativescript.conFusion on device d5cea600.
JS: HMR: Hot Module Replacement Enabled. Waiting for signal.
JS: Angular is running in the development mode. Call enableProdMode() to enable the production mode.
System.err: An uncaught Exception occurred on "main" thread.
System.err: Unable to start activity ComponentInfo{org.nativescript.conFusion/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: Calling js method onCreate failed
System.err: Error: Main entry is missing. App cannot be started. Verify app bootstrap.
System.err:
System.err: StackTrace:
System.err: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.nativescript.conFusion/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: Calling js method onCreate failed
System.err: Error: Main entry is missing. App cannot be started. Verify app bootstrap.
System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3499)
System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3653)
System.err: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
System.err: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:151)
System.err: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:111)
System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2224)
System.err: at android.os.Handler.dispatchMessage(Handler.java:107)
System.err: at android.os.Looper.loop(Looper.java:228)
System.err: at android.app.ActivityThread.main(ActivityThread.java:7813)
System.err: at java.lang.reflect.Method.invoke(Native Method)
System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:981)
System.err: Caused by: com.tns.NativeScriptException: Calling js method onCreate failed
System.err: Error: Main entry is missing. App cannot be started. Verify app bootstrap.
System.err: at com.tns.Runtime.callJSMethodNative(Native Method)
System.err: at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1286)
System.err: at com.tns.Runtime.callJSMethodImpl(Runtime.java:1173)
System.err: at com.tns.Runtime.callJSMethod(Runtime.java:1160)
System.err: at com.tns.Runtime.callJSMethod(Runtime.java:1138)
System.err: at com.tns.Runtime.callJSMethod(Runtime.java:1134)
System.err: at com.tns.NativeScriptActivity.onCreate(NativeScriptActivity.java:19)
System.err: at android.app.Activity.performCreate(Activity.java:7962)
System.err: at android.app.Activity.performCreate(Activity.java:7951)
System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)
System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3474)
System.err: ... 11 more

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、ビルド出力で言及されている生成済みのエントリポイント、特に main.ts、app/app.module.ts、app/app.routing.ts から調査を開始し、報告されている webpack 出力を使って Android の起動を再現します。アプリケーションがメインエントリがないと報告する理由を追跡します。この例外が発生せず、Android デバイス上でアプリが正常に起動すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android, angular, javascript, typescript, webpack
領域
cli, mobile
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。