Everything works fine when I run ionic serve / ionic lab
but I see the following error in the Ionic Pro. It is after pushing changes to ionic master and auto run build.
[12:56:11] ionic-app-scripts 3.0.0 [12:56:11] build dev started ... [12:56:11] clean started ... [12:56:11] clean finished in 1 ms [12:56:11] copy started ... [12:56:11] deeplinks started ... [12:56:11] deeplinks finished in 104 ms [12:56:11] transpile started ... [12:56:19] typescript: src/app/app.module.ts, line: 10 Cannot find module '../providers/data'.
app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule } from '@angular/core';
import { IonicPage, IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { StatusBar } from '@ionic-native/status-bar';
import { HttpModule } from '@angular/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';
import { DataProvider } from '../providers/data/data';
@NgModule({
declarations: [
MyApp,
HomePage,
],
imports: [
BrowserModule,
IonicModule.forRoot(MyApp),
BrowserAnimationsModule,
HttpModule
],
bootstrap: [IonicApp],
entryComponents: [
MyApp,
HomePage,
],
providers: [
StatusBar,
{provide: ErrorHandler, useClass: IonicErrorHandler},
DataProvider,
]
})
export class AppModule {}