-
-
Notifications
You must be signed in to change notification settings - Fork 342
Always get Application entry point file not found #197
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
By inspecting the apk, it seems that the |
@michaellee8 Can you post your TypeScript plugin version. For some reason, your typescript translation is not working and your entry point file is not transpired to javascript. You can check your version of TypeScript (tsc --version) and also can make sure that you have installed TypeScript in your project.
Take a look at this discussion here |
I think the above one should be the
Thanks for your help EDIT: Even I installed the typescript globally, the issue still exists |
@michaellee8 I've tried to reproduce but with no avail. The test project that I have created is located here - perhaps you can try to clone it and run it at your side just to see if the error is consistent. I am kinda suspecting the TypeScript version is responsible for not transpiring your entry point file (btw you can check your secondary in-app package.json in the app folder and make sure it does have an entry point something like |
It seems that the build tool fail to transcompile all the
I have already rum Edit: i typed this for a while on my phone so I may miss out your previous comment on :30. |
Just for confirm, would you like to list out all the commands required to build this app assumung from the folder you provided? something like |
@michaellee8 if you run directly in project
It will step by step add the platform (Android), then build the project, then deploy it on the connected devices and finally start it.
Of course, if some of the commands are already executed (e.g. your platform is already added or your project is already built) then this step will be dismissed and the next in line will be executed If you want to explicitly run all the commands you can delete your node_modules and platforms folders which will force the respective commands to be triggered (npm install and tns platform add) before the build, deploy and start of your application. |
I created an app, let say R, with Now I can conclude that this behavior is because those TypeScript are not transcompiled to JavaScript, so the android runtime cannot find the The problem remains, how may I make those script transcompiles? Thank you. I don't mind reinstalling everything if it really needs. |
It seems that when my package compiler compiles your provided app, the apk file still contains the |
Any update on this one? thx. |
@michaellee8 can't think of anything else apart from that perhaps your TypeScript is not installed properly and causing these side effects. I've tried your configuration on my side (Node 7.3 and TS 2.1.4) and everything works as expected - the sample project I posted above was created with this configuration. You can try to open your project (TypeScript or Angular-2) and run |
both tsc and tns are properly installed with
Any thoughts on that? |
@michaellee8 it is probably related to this issue and there is a possible solution and also a fix applied to [email protected]. To update your dev dependency you can remove your node_modules folder and change the dependency in your package.json to 0.3.3 and then rebuild your app. |
Sorry for missing your reply because I am quite busy these days. |
@michaellee8 can you share via archive or GitHub a sample project that is reproducing this issue!?
Af the error persist, please send us the log.txt file generated by the command above ( plus the package.json content of your project if you can not send us the whole project) |
the windows console outputs: https://gist.github.com/michaellee8/d290c05d54311ee2c33d2ef7183e3412 |
Hi @michaellee8 The provided logs suggest that it is low memory issue. What version of |
node is the latest lts, which should be 6.9.2 in my memory, java is jdk from oracle version 1.8_101, running in a 32-bit old version of win 10, so I am forced to do -Xms512M ( as memory) to prevent causing the java could not allocate memory bug, in envrionment variable JAVA_OPTIONS, as existed when I ran gradle previously |
If possible I would suggest as an immediate step to play with |
Problem still exists even removing |
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. |
@michaellee8 I guess the 32-bit limitation for your operating memory was causing this behaviour (as @slavchev suggested) so upgrading to 64-bit OS was a good idea. |
@michaellee8 you could have also probably do it like in NativeScript/nativescript-cli#2756 without upgrading |
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:
Best Regards |
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": { |
(VS Code) |
I am working on my own angular+nativescript app but found
Application entry point file not found
that even the bare project just rantns create --ng proj
andtns add platform android
show the error above every time I try to run it. Then I tried to test theangular-end
ofsample-Groceries
as well but the error still exists. It happens even when I use bare javascript from theend
branch.The text was updated successfully, but these errors were encountered: