Skip to content

Always get Application entry point file not found #2372

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

Closed
michaellee8 opened this issue Dec 27, 2016 · 7 comments
Closed

Always get Application entry point file not found #2372

michaellee8 opened this issue Dec 27, 2016 · 7 comments
Labels

Comments

@michaellee8
Copy link

I am working on my own angular+nativescript app but found Application entry point file not found that even the bare project just ran tns create --ng proj and tns add platform android show the error above every time I try to run it. Then I tried to test the angular-end of sample-Groceries as well but the error still exists. It happens even when I use bare javascript from the end branch.

@michaellee8
Copy link
Author

By inspecting the apk, it seems that the *.ts files are not compiled.

@NickIliev
Copy link
Contributor

Hey @michaellee8

As suggested here a possible reason for this issue is using incompatible Node.js version. Can you try updating to the latest stable versions (at this point 6.9.2) and also try the steps suggested in the linked issue.

@michaellee8
Copy link
Author

I have v7.3.0 here, is it a problem?

@NickIliev
Copy link
Contributor

@michaellee8 at this moment only the LTS versions are officially supported and indeed there are some issues with the 7.x versions of Node.js. You can try to reinstall Node.js using 6.9.2 or if you want you can try a Node.js version manager like nvm or n (tools that allow you to have multiple Node.js versions and switch them with commands)

@michaellee8
Copy link
Author

michaellee8 commented Dec 27, 2016

@NickIliev I am on windows, how do I do it? It seems they are just for Unix.

@michaellee8
Copy link
Author

Still the same situation

An uncaught Exception occurred on "main" thread.
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.
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4643)
at android.app.ActivityThread.access$1300(ActivityThread.java:165)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1433)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5391)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(Native Method)
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.
at com.tns.Module.bootstrapApp(Module.java:337)
at com.tns.Runtime.run(Runtime.java:508)
at com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:17)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1065)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4640)
... 10 more
Caused by: com.tns.NativeScriptException: Failed to find module: "./", relative to: app//
at com.tns.Module.resolvePathHelper(Module.java:159)
at com.tns.Module.bootstrapApp(Module.java:335)
... 14 more

@NickIliev
Copy link
Contributor

Hey @michaellee8
I've just realised that you have two opened issues and I have given a possible reason for your issue here. Closing this one as duplicate - let's continue our discussion in the another issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants