I'm encountering an issue that none of the other similar questions have been able to help me solve. Can anyone offer assistance? I've already attempted removing parameters one by one, but I'm still stuck.
Can't resolve all parameters for MyApp: (?, ?, ?, ?, ?, ?).
app.component.ts
import { Component } from '@angular/core';
import { Platform } from 'ionic-angular';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { Subscription } from 'rxjs';
import { GlobalService } from '../services/global-service';
import { TabsPage } from '../pages/tabs/tabs';
import { File } from '@ionic-native/file';
import { Insomnia } from '@ionic-native/insomnia';
@Component({
templateUrl: 'app.html'
})
export class MyApp{
constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen, private global : GlobalService,
private file: File, private insomnia: Insomnia){}
}
app.module.ts
import { MyApp } from './app.component';
import { Platform } from 'ionic-angular';
import { GlobalService } from '../services/global-service';
import { UserService } from '../services/user-service';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { File } from '@ionic-native/file';
import { FileTransfer } from '@ionic-native/file-transfer';
import { Insomnia } from '@ionic-native/insomnia';
import { Network } from '@ionic-native/network';
import { MusicControls } from '@ionic-native/music-controls';
@NgModule({
declarations: [
MyApp,
...
],
imports: [
...
],
bootstrap: [...],
entryComponents: [
MyApp
],
providers: [
Platform,
StatusBar,
SplashScreen,
Insomnia,
File,
FileTransfer,
Network,
MusicControls,
{provide: ErrorHandler, useClass: IonicErrorHandler},
GlobalService,
UserService,
{ provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig }
]
})
export class AppModule {}
services/global-service.ts
import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import { Subject } from 'rxjs/Subject';
import { File } from '@ionic-native/file';
import { Platform } from 'ionic-angular';
import * as SoundFont from 'soundfont-player';
import * as Firebase from 'firebase';
import 'firebase/firestore';
import 'rxjs/Rx';
@Injectable()
export class GlobalService {..}
I can't pinpoint the root cause of my error so far. My environment includes Ionic 3.9.2, Angular Core 5.2.9, Node 6.10.2. Could there be an issue with my node_modules or configurations?