Alorel/ngforage

Angular 8 AOT Unexpected value NgForageModule

Closed this issue · 1 comments

  • I have read the README and API docs (if applicable); the issue is not covered there.
  • I have searched the repository issues and pull requests; my query is not covered there.

YKHotSpot:Mentare ekashpersky$ ng version

 _                      _                 ____ _     ___
/ \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|

/ △ \ | '_ \ / | | | | |/ _ | '__| | | | | | |
/ ___ | | | | (
| | || | | (| | | | || | | |
// __| ||_, |_,||_,|| _|||
|___/

Angular CLI: 8.3.21
Node: 12.14.0
OS: darwin x64
Angular: 8.2.14
... common, compiler, compiler-cli, core, platform-browser
... platform-browser-dynamic

Package Version

@angular-devkit/architect 0.800.6
@angular-devkit/build-angular 0.800.6
@angular-devkit/build-ng-packagr 0.800.6
@angular-devkit/build-optimizer 0.800.6
@angular-devkit/build-webpack 0.800.6
@angular-devkit/core 8.0.6
@angular-devkit/schematics 8.3.21
@angular/animations 8.0.3
@angular/cli 8.3.21
@angular/forms 8.0.3
@angular/language-service 8.0.3
@angular/router 8.0.3
@ngtools/webpack 8.3.21
@schematics/angular 8.3.21
@schematics/update 0.803.21
ng-packagr 5.7.1
rxjs 6.4.0
typescript 3.4.5
webpack 4.30.0

  • Expected behaviour: To be built
  • Actual behaviour: An error
  • Environment:
    • Node version: 12.14.0
  • Steps to reproduce:
    ng build --prod
  • Reproducible code sample:
    @NgModule({
    imports: [
    NgForageModule
    ]
    })

ERROR in Unexpected value 'NgForageModule in /Users/ekashpersky/Documents/Projects/Mentare/node_modules/ngforage/ngforage.d.ts' imported by the module 'AppModule in /Users/ekashpersky/Documents/Projects/Mentare/src/app/app.module.ts'. Please add a @NgModule annotation.

Alright, so npm run build -- --preserve-symlinks fixes the problem.

HTH.