Created
August 21, 2017 15:28
-
-
Save SpeedoPasanen/10d34128f126549bda2af7a650f4dcf9 to your computer and use it in GitHub Desktop.
Universal @ Firebase Cloud Functions: TypeError: ctor is not a constructor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { MockAppComponent } from './mock-app.component'; | |
import { NgModule } from '@angular/core'; | |
import { BrowserModule } from '@angular/platform-browser'; | |
import { SharedModule } from '../../shared/shared.module'; | |
import { AuthService } from '../../models/auth/auth.service'; | |
import { PromptService } from '../../components/prompt/prompt.service'; | |
import { BaseModelService } from '../../models/base-model.service'; | |
import { CookieService } from 'ng2-cookies'; | |
import { ChartService } from '../../models/chart-data/chart.service'; | |
import { RolesService } from '../../models/auth/roles.service'; | |
import { ForumsService } from '../../models/forums/forums.service'; | |
import { HeadToucherService } from '../../services/head-toucher.service'; | |
import { ResponsiveService } from '../../services/responsive.service'; | |
import { ScrollAreaService } from '../../components/scroll-area/scroll-area.service'; | |
import { AngularFireModule } from 'angularfire2'; | |
import { environment } from '../../../environments/environment'; | |
import { AngularFireDatabaseModule } from 'angularfire2/database'; | |
import { AngularFireAuthModule } from 'angularfire2/auth'; | |
import { FileUploadModule } from 'ng2-file-upload'; | |
@NgModule({ | |
imports: [ | |
BrowserModule.withServerTransition({ appId: 'universal' }), | |
SharedModule, | |
AngularFireModule.initializeApp(environment.firebase), | |
AngularFireDatabaseModule, // Causes "ctor is not a constructor" | |
AngularFireAuthModule, // Causes "ctor is not a constructor" | |
FileUploadModule | |
], | |
declarations: [ | |
MockAppComponent, | |
], | |
entryComponents: [ | |
], | |
exports: [ | |
], | |
providers: [ | |
AuthService, | |
PromptService, | |
BaseModelService, | |
CookieService, | |
ChartService, | |
RolesService, | |
ForumsService, | |
HeadToucherService, | |
ResponsiveService, | |
ScrollAreaService | |
], | |
bootstrap: [MockAppComponent] | |
}) | |
export class MockAppModule { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment