-
Notifications
You must be signed in to change notification settings - Fork 224
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
ERROR in InfiniteScrollModule is not an NgModule #147
Comments
It happens for me on 4.0.0 too When you create AoT build the error message is more specific
Could be related to angular/angular#15763 |
It happens the same for me. I have Angular CLI v1.0.0 and Angular v4.0.1.
|
as a reference - this issue is reported for various reasons here: |
I've tried 2 propositions found on angular/angular-cli#3426 :
None (or both consecutively) worked for me. |
That fixed it! What did you do? |
@cdibbs I renamed the main module file from index.ts to ngx-infinite-scroll.module.ts and removed the "ngzone" from the tsconfig "files" setting. |
I wanted to understand, so I narrowed it down using a local copy of the repo. I repeated what you described, but did only the rename. That worked. I was also able to leave it as index.ts, but did: export * from './modules/index'; and after that export { InfiniteScrollModule } from './modules/index'; Those worked, too. So, it's only the export from the implicitly-specified barrel file that was causing this. Anyway, thanks for the fast turnaround! |
It worked for me too. Thanks for the super quick fix! |
It works also for me. Thanks so much @orizens for your speed. |
The app appears to build correctly, but then gives this error message:
I was using Angular 2.4.3. The error persisted after upgrading 4.0.2. I am using Angular CLI @ 1.0.0.
The text was updated successfully, but these errors were encountered: