sample-Groceries: Always get Application entry point file not found

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.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 27 (8 by maintainers)

Most upvoted comments

Same problem here, Mac user. It’s something I’m working on, based on the Groceries sample app.

It only happens with “tns run android” (iOS is fine).

The .ts files are copied in platforms/android/src/main/assets/app but not .js files are generated. They are generated on the root ./app (development) folder if I use “tns run ios”, though. So TS seems to be working.

Strangely, if I build the project for release (that is, with a .keystore file, etc.), the project is correctly built. But still, I can’t use the emulation for debugging.

I have currently installed TS 2.3.3 globally, and 2.2.1 on my project. Using TNS 3.0.1 currently

I tried deleting node_modules, hooks and platforms several times.

Packages are:

“dependencies”: { “@angular/animations”: “~4.1.0”, “@angular/common”: “~4.1.0”, “@angular/compiler”: “~4.1.0”, “@angular/core”: “~4.1.0”, “@angular/forms”: “~4.1.0”, “@angular/http”: “~4.1.0”, “@angular/platform-browser”: “~4.1.0”, “@angular/router”: “~4.1.0”, “nativescript-angular”: “~3.0.0”, “nativescript-localize”: “^2.0.1”, “nativescript-telerik-ui”: “^2.0.1”, “nativescript-theme-core”: “~1.0.2”, “reflect-metadata”: “~0.1.8”, “rxjs”: “~5.3.0”, “tns-core-modules”: “^3.0.1”, “zone.js”: “~0.8.2” }, “devDependencies”: { “babel-traverse”: “6.24.1”, “babel-types”: “6.24.1”, “babylon”: “6.17.1”, “lazy”: “1.0.11”, “nativescript-dev-sass”: “^1.1.1”, “typescript”: “~2.2.1”, “nativescript-dev-typescript”: “~0.4.0” }

(VS Code) 1.npm install typescript@latest 2.ctrl+shift+p(configure task runner) 3.select tsconfig file 4.ctrl+shift+b(transpile all ts to js) 5.done

Hello,

same issue here. I managed to solve my problem. I’m wondering whether my solution would work for you as well. Actually for me it was quite easy - antyvirus software run gradle and other programs in sandbox separated from real file system. So build was really completed but no result on HDD as the result was stored in sandbox, indeed.

Please try to turn off all kind of antyvirus/firewall/sandboxing software for a while (for ex. 15 minutes) and try to run once again. If now works fine - you’ll have to put all tns related binaries on white list in sandboxing program.

try:

tns build android

check if apk is there

tns run android

Best Regards

Just installed Ubuntu 16.04 LTS 64-bit a few days ago on the same computer above. Testing nativescript on it again and found it works smoothly, and all typescript all compiled. Maybe there are some bugs in my windows 10.