-
-
Notifications
You must be signed in to change notification settings - Fork 241
get error : [Failed to find module: "./tabs/ tabs.module", relative to: app//] on device only #1895
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
Hi @nkemerchou, |
tns preview --bundle did not help, still see the error : LOG from device Galaxy S6: ### ErrorHandler Stack: Error: Uncaught (in promise): Error: com.tns.NativeScriptException: Failed to find module: "~/app/t |
HI @nkemerchou, |
Hi Please advice! Thank! |
Hi @nkemerchou, Thanks for providing a sample application. It seems that you've faced a very strange Angular issue. When providing an class MyErrorHandler implements ErrorHandler { with: export class MyErrorHandler implements ErrorHandler { After applying this change, the errors are much more readable and you will have to apply a few additional changes (mainly because when you provide a path relative to the app root, you need to use
{ provide: NgModuleFactoryLoader, useClass: NSModuleFactoryLoader }
loadChildren: "./app/tabs/tabs.module#TabsModule" with: loadChildren: "~/app/tabs/tabs.module#TabsModule"
loadChildren: "./app/player/players.module#PlayersModule", with: loadChildren: "~/app/player/players.module#PlayersModule", replace: loadChildren: "./app/team/teams.module#TeamsModule" with: loadChildren: "~/app/team/teams.module#TeamsModule" I also recommend you try the [email protected] release by executing the following commands:
|
Environment
Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):Describe the bug
I have the issue using the project (login-tab-navigation-ng-master from github ) which works fine in android emulator, but when i use tns preview to check the app in my android phone i get the error : [Failed to find module: "./tabs/ tabs.module , relative to: app//], can some one help on this ?
To Reproduce
Expected behavior
the tab page should open
Sample project
https://github.com/artu-ole/login-tabs-ng-shared
The text was updated successfully, but these errors were encountered: