Error: com.tns.NativeScriptException: Failed to find module: "tslib", relative to: app/tns_modules/
com.tns.Module.resolvePathHelper(Module.java:146)
com.tns.Module.resolvePath(Module.java:55)
com.tns.Runtime.runModule(Native Method)
com.tns.Runtime.runModule(Runtime.java:553)
com.tns.Runtime.run(Runtime.java:545)
com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:21)
android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1119)
android.app.ActivityThread.handleBindApplication(ActivityThread.java:5740)
android.app.ActivityThread.-wrap1(Unknown Source:0)
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656)
android.os.Handler.dispatchMessage(Handler.java:106)
android.os.Looper.loop(Looper.java:164)
android.app.ActivityThread.main(ActivityThread.java:6494)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
File: "<unknown>, line: 1, column: 265
StackTrace:
Frame: function:'require', file:'', line: 1, column: 266
Frame: function:'', file:'file:///data/data/org.nativescript.hacktober/files/app/tns_modules/tns-core-modules/globals/ts-helpers.js', line: 13, column: 13
Frame: function:'require', file:'', line: 1, column: 266
Frame: function:'', file:'file:///data/data/org.nativescript.hacktober/files/app/tns_modules/tns-core-modules/globals/globals.js', line: 2, column: 1
Frame: function:'require', file:'', line: 1, column: 266
Frame: function:'', file:'file:///data/data/org.nativescript.hacktober/files/app/tns_modules/tns-core-modules/application/application-common.js', line: 2, column: 1
Frame: function:'require', file:'', line: 1, column: 266
Frame: function:'', file:'file:///data/data/org.nativescript.hacktober/files/app/tns_modules/tns-core-modules/application/application.js', line: 5, column: 28
Frame: function:'require', file:'', line: 1, column: 266
Frame: function:'', file:'file:///data/data/org.nativescript.hacktober/files/app/app.js', line: 7, column: 19
Frame: function:'require', file:'', line: 1, column: 266
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
Describe the bug
When following the development workflow step for testing tns-core-modules inside your own app, the app will stop with the following runtime error:
Error: com.tns.NativeScriptException: Failed to find module: "tslib", relative to: app/tns_modules/ com.tns.Module.resolvePathHelper(Module.java:146) com.tns.Module.resolvePath(Module.java:55) com.tns.Runtime.runModule(Native Method) com.tns.Runtime.runModule(Runtime.java:553) com.tns.Runtime.run(Runtime.java:545) com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:21) android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1119) android.app.ActivityThread.handleBindApplication(ActivityThread.java:5740) android.app.ActivityThread.-wrap1(Unknown Source:0) android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656) android.os.Handler.dispatchMessage(Handler.java:106) android.os.Looper.loop(Looper.java:164) android.app.ActivityThread.main(ActivityThread.java:6494) java.lang.reflect.Method.invoke(Native Method) com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) File: "<unknown>, line: 1, column: 265 StackTrace: Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'', file:'file:///data/data/org.nativescript.hacktober/files/app/tns_modules/tns-core-modules/globals/ts-helpers.js', line: 13, column: 13 Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'', file:'file:///data/data/org.nativescript.hacktober/files/app/tns_modules/tns-core-modules/globals/globals.js', line: 2, column: 1 Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'', file:'file:///data/data/org.nativescript.hacktober/files/app/tns_modules/tns-core-modules/application/application-common.js', line: 2, column: 1 Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'', file:'file:///data/data/org.nativescript.hacktober/files/app/tns_modules/tns-core-modules/application/application.js', line: 5, column: 28 Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'', file:'file:///data/data/org.nativescript.hacktober/files/app/app.js', line: 7, column: 19 Frame: function:'require', file:'', line: 1, column: 266To Reproduce
Expected behavior
The app should start with no error.