{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/3322","repository_url":"https://api.github.com/repos/NativeScript/NativeScript","labels_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/3322/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/3322/comments","events_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/3322/events","html_url":"https://github.com/NativeScript/NativeScript/issues/3322","id":196454619,"number":3322,"title":"Entry point file not found","user":{"login":"Pourya8366","id":7686319,"avatar_url":"https://avatars.githubusercontent.com/u/7686319?v=3","gravatar_id":"","url":"https://api.github.com/users/Pourya8366","html_url":"https://github.com/Pourya8366","followers_url":"https://api.github.com/users/Pourya8366/followers","following_url":"https://api.github.com/users/Pourya8366/following{/other_user}","gists_url":"https://api.github.com/users/Pourya8366/gists{/gist_id}","starred_url":"https://api.github.com/users/Pourya8366/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pourya8366/subscriptions","organizations_url":"https://api.github.com/users/Pourya8366/orgs","repos_url":"https://api.github.com/users/Pourya8366/repos","events_url":"https://api.github.com/users/Pourya8366/events{/privacy}","received_events_url":"https://api.github.com/users/Pourya8366/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"tsonevn","id":17448734,"avatar_url":"https://avatars.githubusercontent.com/u/17448734?v=3","gravatar_id":"","url":"https://api.github.com/users/tsonevn","html_url":"https://github.com/tsonevn","followers_url":"https://api.github.com/users/tsonevn/followers","following_url":"https://api.github.com/users/tsonevn/following{/other_user}","gists_url":"https://api.github.com/users/tsonevn/gists{/gist_id}","starred_url":"https://api.github.com/users/tsonevn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsonevn/subscriptions","organizations_url":"https://api.github.com/users/tsonevn/orgs","repos_url":"https://api.github.com/users/tsonevn/repos","events_url":"https://api.github.com/users/tsonevn/events{/privacy}","received_events_url":"https://api.github.com/users/tsonevn/received_events","type":"User","site_admin":false},"assignees":[{"login":"tsonevn","id":17448734,"avatar_url":"https://avatars.githubusercontent.com/u/17448734?v=3","gravatar_id":"","url":"https://api.github.com/users/tsonevn","html_url":"https://github.com/tsonevn","followers_url":"https://api.github.com/users/tsonevn/followers","following_url":"https://api.github.com/users/tsonevn/following{/other_user}","gists_url":"https://api.github.com/users/tsonevn/gists{/gist_id}","starred_url":"https://api.github.com/users/tsonevn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsonevn/subscriptions","organizations_url":"https://api.github.com/users/tsonevn/orgs","repos_url":"https://api.github.com/users/tsonevn/repos","events_url":"https://api.github.com/users/tsonevn/events{/privacy}","received_events_url":"https://api.github.com/users/tsonevn/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-12-19T16:18:15Z","updated_at":"2016-12-20T07:31:09Z","closed_at":null,"body":"I create Angular 2 nativescript project with `tns create name --ng` command and after adding android platform with `tns platform add android` command, i run the project with `tns run android` command in a connected nexus 6p with android version 7.1.1 and when app deployed to the device i got this error:\r\n\r\n```\r\nAn uncaught Exception occurred on \"main\" thread.\r\njava.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.\r\n at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5406)\r\n at android.app.ActivityThread.-wrap2(ActivityThread.java)\r\n at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1545)\r\n at android.os.Handler.dispatchMessage(Handler.java:102)\r\n at android.os.Looper.loop(Looper.java:154)\r\n at android.app.ActivityThread.main(ActivityThread.java:6119)\r\n at java.lang.reflect.Method.invoke(Native Method)\r\n at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)\r\n at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)\r\nCaused 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.\r\n at com.tns.Module.bootstrapApp(Module.java:337)\r\n at com.tns.Runtime.run(Runtime.java:508)\r\n at com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:17)\r\n at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1024)\r\n at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5403)\r\n ... 8 more\r\nCaused by: com.tns.NativeScriptException: Failed to find module: \"./\", relative to: app//\r\n at com.tns.Module.resolvePathHelper(Module.java:159)\r\n at com.tns.Module.bootstrapApp(Module.java:335)\r\n ... 12 more\r\n\r\n```\r\n\r\nthe main problem is that none of `.ts` files transpiled into `.js` file.\r\n\r\nMore details:\r\n\r\n- Android Platform\r\n\r\n- CLI: 2.4.2\r\n- Cross-platform modules: 2.4.3\r\n- Runtime(s):2.4.1\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/comments/268174631","html_url":"https://github.com/NativeScript/NativeScript/issues/3322#issuecomment-268174631","issue_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/3322","id":268174631,"user":{"login":"tsonevn","id":17448734,"avatar_url":"https://avatars.githubusercontent.com/u/17448734?v=3","gravatar_id":"","url":"https://api.github.com/users/tsonevn","html_url":"https://github.com/tsonevn","followers_url":"https://api.github.com/users/tsonevn/followers","following_url":"https://api.github.com/users/tsonevn/following{/other_user}","gists_url":"https://api.github.com/users/tsonevn/gists{/gist_id}","starred_url":"https://api.github.com/users/tsonevn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsonevn/subscriptions","organizations_url":"https://api.github.com/users/tsonevn/orgs","repos_url":"https://api.github.com/users/tsonevn/repos","events_url":"https://api.github.com/users/tsonevn/events{/privacy}","received_events_url":"https://api.github.com/users/tsonevn/received_events","type":"User","site_admin":false},"created_at":"2016-12-20T07:31:09Z","updated_at":"2016-12-20T07:31:09Z","body":"Hi @Pourya8366,\r\nThank you for your interest in NativeScript.\r\nI tested the given case, however was unable to reproduce this behavior. Could you try to follow the below given steps.\r\n1. delete `node_modules`, `platforms`, `hooks` folders\r\n2. clean npm cache with ` npm cache clear` \r\n3. try to rebuild the project using only `tns run android`\r\n\r\nRegarding to the project could you give us some more info for the `node` version and whether you are using latest [LTS version 6.9.2](https://nodejs.org/en/).\r\n\r\nHope this helps."}}
{"actor":{"display_login":"tsonevn"}}