Hello recently i update my project to ionic 2 rc4, the compilation is doing correctly but when my app start to load I get the next runtime error
Uncaught Error: Can't resolve all parameters for ActiveChat: (App, DataService, NgZone, TranslateService, ModalController, ?, Config). at CompileMetadataResolver._getDependenciesMetadata (file:///android_asset/www/build/main.js:33514:19) at CompileMetadataResolver._getTypeMetadata (file:///android_asset/www/build/main.js:33408:26) at file:///android_asset/www/build/main.js:33558:41 at Array.forEach (native) at CompileMetadataResolver._getProvidersMetadata (file:///android_asset/www/build/main.js:33538:19) at CompileMetadataResolver._loadNgModuleMetadata (file:///android_asset/www/build/main.js:33321:50) at CompileMetadataResolver.loadNgModuleMetadata (file:///android_asset/www/build/main.js:33204:29) at RuntimeCompiler._loadModules (file:///android_asset/www/build/main.js:49527:41) at RuntimeCompiler._compileModuleAndComponents (file:///android_asset/www/build/main.js:49497:35) at RuntimeCompiler.compileModuleAsync (file:///android_asset/www/build/main.js:49487:21)
I dont undertand because happen this error, but apparently the code for my service is correct, bellow i show the service constructor
`import {App, ModalController, Platform} from ‘ionic-angular’;
import {TranslateService} from ‘ng2-translate/ng2-translate’;
import {NgZone, Injectable} from ‘@angular/core’;
import {DataService} from ‘…/…/services/data’;
import {Session} from ‘…/…/services/session’;
import {ChatPage} from ‘./chatView’;
import {S3Images} from ‘…/…/services/s3images’;
import {EntityPage} from ‘…/entity/entity’;
import {SearchPage} from ‘…/search/search’;
import {Config} from ‘…/…/config’;
@Injectable()
export class Chats {
isIos :boolean
identifyAgents: any
items : any
itemsDefault:any;
fieldsNotPersist : any = {
‘ownerOnline’:true,
‘session’:true
}
loaded : boolean
bucketS3Entities: string
bucketS3Misc: string
itemsD : any
searchTimeout:any
hideQrMsg:boolean
edited: boolean
searchQuery:string
complete:boolean
searchPage: any
groupEntities: any
constructor(public dataService : DataService,
public app : App,
public zone : NgZone,
public translate : TranslateService,
public imagesService : S3Images,
public modalCtrl : ModalController,
public config : Config,
public platform : Platform) {
}`
and the import where i use the service ‘Chats’
`import {TranslateService} from ‘ng2-translate/ng2-translate’;
import {App, ModalController} from ‘ionic-angular’;
import {NgZone, Injectable} from ‘@angular/core’;
import {DataService} from ‘…/…/services/data’;
import {Config} from ‘…/…/config’;
import {ModalCall} from ‘./call’;
import {Chats} from ‘./chats’;
@Injectable()
export class ActiveChat{
hotel :any
time: any
page: any
msgs : any
newContact: boolean
foreground: boolean = false
constructor(public app : App,
public dataService : DataService,
public zone : NgZone,
public translate : TranslateService,
public modal : ModalController,
public chats : Chats,
public config : Config) {
}`
I hope you can help me please, thank you.
Regards