-
-
Notifications
You must be signed in to change notification settings - Fork 342
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
app crash when using npm modules #76
Comments
Hey @yegor-sytnyk, Sorry that you ran into issues here. Two ideas: first, did you make sure to include the Second, did you make sure to perform a full build after installing this package? The NativeScript CLI’s Let me know how it goes. |
Hi @tjvantoll Thank you for instructions! Unfortunately, nothing helped until I have removed platform/hooks folders and have added android platform again. Now it works fine. I've missed section of tutorial where you say that you have to run tns run android --emulator I have assumed that it is like with webpack if you want to clean build you just run |
Thanks @yegor-sytnyk, glad you got this working. Yeah sometime I actually have an open issue to consolidate our commands so that |
Total time: 1 mins 11.52 secs |
I had the same issue, what I did was just to open a new terminal and ran |
On "angular-end" branch having exception below.
When comment out external package usages it works fine.
Exception message:
java.lang.RuntimeException: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: Failed to find module: "email-validator", relative to: /app/tns_modules/
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5125)
at android.app.ActivityThread.access$1600(ActivityThread.java:177)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1510)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5951)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
Caused by: com.tns.NativeScriptException: Failed to find module: "email-validator", relative to: /app/tns_modules/
at com.tns.Module.resolvePathHelper(Module.java:220)
at com.tns.Module.resolvePath(Module.java:60)
at com.tns.Runtime.runModule(Native Method)
at com.tns.Runtime.runModule(Runtime.java:241)
at com.tns.Runtime.run(Runtime.java:235)
at com.tns.RuntimeHelper.initRuntime(RuntimeHelper.java:129)
at com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:13)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1020)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5122)
... 9 more
The text was updated successfully, but these errors were encountered: