creativetimofficial / ct-light-bootstrap-dashboard-pro-angular

7 stars 2 forks source link

ERROR in : Unexpected value NouisliderModule #32

Closed hpardess closed 5 years ago

hpardess commented 5 years ago

Prerequisites

Failure Information (for bugs)

When packaging the application for production i face the error. here is the command i run: ng build --prod --build-optimizer

Failure Logs

ERROR in : Unexpected value 'NouisliderModule in /light-bootstrap-dashboard-pro-angular-v1.3.0/node_modules/ng2-nouislider/src/nouislider.js' imported by the module 'Forms in /light-bootstrap-dashboard-pro-angular-v1.3.0/src/app/forms/forms.module.ts'. Please add a @NgModule annotation.

chelaruc commented 5 years ago

Hi, @hpardess. Thank you for using our product. Have you updated the dependences?

hpardess commented 5 years ago

@chelaruc : I have downloaded v1.3 and here are the relevant dependencies: "nouislider": "9.2.0" "ng2-nouislider": "1.7.12"

The update of dependencies have to be done by team because sometimes the upgrade of dependencies break some pieces of code.

hpardess commented 5 years ago

It is fixed with following changes, "ng2-nouislider": "1.7.12" => "ng2-nouislider": "1.8.2" import { NouisliderModule } from 'ng2-nouislider/src/nouislider'; => import { NouisliderModule } from 'ng2-nouislider';