Hi,
Working with Ionic2 RC.1 and creating a fresh app using the tabs template.
The app works until I generate a provider. The moment I add it, I get the error
[16:40:11] lint finished in 1.41 s
[16:40:13] transpile finished in 2.93 s
[16:40:13] bundle started ...
[16:40:13] copy finished in 2.98 s
[16:40:18] bundle failed: Could not resolve '../providers/data' from /Users/.../src/app/app.module.ts
[16:40:18] watch ready in 8.13 s
Running live reload server: http://localhost:35729
Watching: www/**/*, !www/lib/**/*, !www/**/*.map
√ Running dev server: http://localhost:8100
Ionic server commands, enter:
restart or r to restart the client app from the root
goto or g and a url to have the app navigate to the given url
consolelogs or c to enable/disable console log output
serverlogs or s to enable/disable server log output
quit or q to shutdown the server and exit
My app.module.ts
import { NgModule } from '@angular/core';
import { IonicApp, IonicModule } from 'ionic-angular';
import { MyApp } from './app.component';
import { AboutPage } from '../pages/about/about';
import { ContactPage } from '../pages/contact/contact';
import { HomePage } from '../pages/home/home';
import { TabsPage } from '../pages/tabs/tabs';
import { Data } from '../providers/data';
@NgModule({
declarations: [
MyApp,
AboutPage,
ContactPage,
HomePage,
TabsPage
],
imports: [
IonicModule.forRoot(MyApp)
],
bootstrap: [IonicApp],
entryComponents: [
MyApp,
AboutPage,
ContactPage,
HomePage,
TabsPage
],
providers: [Data]
})
export class AppModule {}
Any ideas ?