When i import 2 components within directives:[] the second component comes with this error File stores.component.xml does not exists.
What Works
When there is only 1 component in directives: [] or use template instead of templateUrl
app.component.ts
import { Component, OnInit } from "@angular/core";
import { Page } from 'ui/page';
import { ChatsComponent } from './chats/chats.component';
import { StoresComponent } from './stores/stores.component';
@Component({
selector: "my-app",
templateUrl: 'app.component.xml',
directives:[ ChatsComponent, StoresComponent ]
})
app.component.xml
<TabView>
<StackLayout *tabItem="{title: 'Chats'}">
<chats></chats>
</StackLayout>
<StackLayout *tabItem="{title: 'Store'}">
<stores></stores>
</StackLayout>
</TabView>