Skip to content

cli v 7.1.2 fresh projects broken ns create  #5475

Closed
@aquinn637

Description

@aquinn637

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


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:492)
System.err: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
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:1182)
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

This is a fresh project created by the cli.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions