-
-
Notifications
You must be signed in to change notification settings - Fork 197
cli v 7.1.2 fresh projects broken ns create #5475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Fixed by #5466 - will be merged&released very soon. |
5 tasks
Unfortunately I just came across this issue on cli version 7.2.1 Env Steps
Run it on an Android 10 device System.err: An uncaught Exception occurred on "main" thread.
System.err: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: Application entry point file not found. Please specify the file in package.json otherwise make sure the file index.js or bootstrap.js exists.\nIf using typescript make sure your entry point file is transpiled to javascript.
System.err:
System.err: StackTrace:
System.err: java.lang.RuntimeException: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: Application entry point file not found. Please specify the file in package.json otherwise make sure the file index.js or bootstrap.js exists.\nIf using typescript make sure your entry point file is transpiled to javascript.
System.err: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6465)
System.err: at android.app.ActivityThread.access$1300(ActivityThread.java:219)
System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1859)
System.err: at android.os.Handler.dispatchMessage(Handler.java:107)
System.err: at android.os.Looper.loop(Looper.java:214)
System.err: at android.app.ActivityThread.main(ActivityThread.java:7356)
System.err: at java.lang.reflect.Method.invoke(Native Method)
System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:940)
System.err: Caused by: com.tns.NativeScriptException: Application entry point file not found. Please specify the file in package.json otherwise make sure the file index.js or bootstrap.js exists.\nIf using typescript make sure your entry point file is transpiled to javascript.
System.err: at com.tns.Module.bootstrapApp(Module.java:316)
System.err: at com.tns.Runtime.run(Runtime.java:680)
System.err: at com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:21)
System.err: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1189)
System.err: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6460)
System.err: ... 8 more
System.err: Caused by: com.tns.NativeScriptException: Failed to find module: "./", relative to: app//
System.err: at com.tns.Module.resolvePathHelper(Module.java:151)
System.err: at com.tns.Module.bootstrapApp(Module.java:314)
System.err: ... 12 more
Successfully synced application org.nativescript.xoloapp on device 5083f661. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
macOS Big Sur v 11.1
node -v
v12.18.4
ns -v
7.1.2
ns create new-app-2
cd new-app-2
I opened my Android emulator from Android Studio.
ns run android
This is a fresh project created by the cli.
The text was updated successfully, but these errors were encountered: