Ionic Pro: (Build failed): Cannot find module '../providers/data/data'

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 {}

Does this exist?
What is your ionic info?

Ionic Pro is a hosted and closed source service, so there is not much we, the community, can help you with, sorry. Check these:

You can - and should - contact support at http://ionicframework.com/support#support

Hello,

Got the same issue, did you find a solution?

Thanks.

I had the same problems and I searched for days and could not find the answer.

Updating both Ionic and Ionic-Scripts to the latest version fixed it for me
My ionic-scripts were outdated. Also try downgrading to cordova 6.4
.

npm install @ionic/app-scripts@latest

Hi guys

Just solved that issue after days of headache… !

Need to track the ‘providers/’ folder with git (I use Git Bash for windows)

git add providers/

To see at any time what files of folders are tracked by git

git status

Hope this can help