Skip to content

Issue with AoT Angular 4 #171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lukasasorensen opened this issue Jul 3, 2017 · 1 comment
Closed

Issue with AoT Angular 4 #171

lukasasorensen opened this issue Jul 3, 2017 · 1 comment

Comments

@lukasasorensen
Copy link

Error: Unexpected value 'InfiniteScrollModule' imported by the module 'AppModule'. Please add a @NgModule annotation.

src/app/App.module.ts
@NgModule({
imports: [
SharedModule.forRoot(),
FormsModule,
ReactiveFormsModule,
HttpModule,
TransferHttpModule,
InfiniteScrollModule,
NgReduxModule,
MdToolbarModule,
MdIconModule,
MdMenuModule,
MdTabsModule,
MdSnackBarModule,
MdInputModule,
MdButtonModule,
MdSelectModule,
DialogModule.forRoot([LoginForm, SignupComponent, ResetComponent]),
CardModule,
TabsModule,
FilterDropdownModule,
AuthModule,
RouterModule.forRoot(AppRoutes)
],
providers: [
AuthenticationService,
AuthGuard,
DialogService,
IdentityService,
StorageService,
UserService,
ToasterService,
LiveAnnouncer,
PollingService,
FacebookService
],
declarations: [
AppComponent,
HomeView,
HeaderComponent,
FooterComponent,
NavBarComponent,
LoginForm,
SignupComponent,
ResetComponent
],
exports: [ AppComponent ],
bootstrap : [ AppComponent ]
})
export class AppModule {
constructor(private _facebookService: FacebookService) {
let initParams: InitParams = {
appId: Config.facebookAuth.clientId,
xfbml: true,
version: 'v2.9'
};
//initialize and setup the SDK
this._facebookService.init(initParams);
}
}

@orizens
Copy link
Owner

orizens commented Aug 3, 2017

make sure your build process extracts the correct file for inifinite-scroller

orizens added a commit that referenced this issue Sep 26, 2017
@orizens orizens closed this as completed Sep 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants