phillipcurl / ngx-warehouse

:package: An offline storage solution for Angular apps https://phillipcurl.github.io/ngx-warehouse
MIT License
10 stars 1 forks source link

Adding module fail #3

Closed anvial closed 6 years ago

anvial commented 6 years ago

Hi,

During adding module to my app.module.ts file. I've have the error: image

Add like the follows:

import { NgxWarehouseModule } from 'ngx-warehouse';

@NgModule({
  declarations: [
    ...
  ],
  imports: [
    ...
    NgxWarehouseModule
  ],
  providers: [
    ...
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }

My package.json

{
  "name": "c2-portal",
  "version": "0.1.0",
  "license": "MIT",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "production": "ng build -e=prod --prod",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "5.0.0",
    "@angular/common": "5.0.0",
    "@angular/compiler": "5.0.0",
    "@angular/compiler-cli": "5.0.0",
    "@angular/core": "5.0.0",
    "@angular/flex-layout": "2.0.0-beta.10-4905443",
    "@angular/forms": "5.0.0",
    "@angular/http": "5.0.0",
    "@angular/platform-browser": "5.0.0",
    "@angular/platform-browser-dynamic": "5.0.0",
    "@angular/router": "5.0.0",
    "angular2-fontawesome": "0.9.3",
    "core-js": "2.5.1",
    "font-awesome": "4.7.0",
    "ng2-dnd": "4.2.0",
    "ng2-gravatar-directive": "2.1.0",
    "ngx-warehouse": "1.0.0",
    "primeng": "5.0.0-rc.0",
    "rxjs": "5.5.2",
    "zone.js": "0.8.18"
  },
  "devDependencies": {
    "@angular/cli": "1.5.0",
    "@types/jasmine": "2.6.3",
    "@types/node": "~8.0.1",
    "codelyzer": "~4.0.1",
    "jasmine-core": "~2.8.0",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~1.7.0",
    "karma-chrome-launcher": "~2.2.0",
    "karma-cli": "~1.0.1",
    "karma-jasmine": "~1.1.0",
    "karma-jasmine-html-reporter": "0.2.2",
    "karma-coverage-istanbul-reporter": "1.3.0",
    "protractor": "~5.2.0",
    "ts-node": "~3.3.0",
    "tslint": "~5.8.0",
    "typescript": "2.6.1"
  }
}

Any suggestions? Thank You!

phillipcurl commented 6 years ago

@anvial Hmm I'm seeing that too when I spin up a new CLI project. I'm thinking it's related to the Webpack production bundle, but I only had time to repro it and didn't start digging in yet. I should be able to take a look into this tonight, so I'll let you know when I have more details. Thanks for reporting the issue!

wbhob commented 6 years ago

Any news on this? Still having issues.

phillipcurl commented 6 years ago

@anvial @wbhob My apologies for the delay. I'm not working with Angular much these days, so this wasn't really on my radar. This issue should be resolved in the latest version of ngx-warehouse. If that's not the case for you, let me know and I'll continue investigating.