UncommonConcept / ngx-toggle-switch

AoT build issue fix, Will be more collaborative repository. Since no activity of angular2-ui-switch repository.
MIT License
16 stars 8 forks source link

angular cli build error #3

Closed nasserghiasi closed 6 years ago

nasserghiasi commented 6 years ago

ERROR in : Unexpected value 'UiSwitchModule in /project/node_modules/ngx-toggle-switch/dist/index.d.ts' imported by the module 'AppModule in /project/src/app/app.module.ts'. Please add a @NgModule annotation.

nasserghiasi commented 6 years ago

the main repository fixed this issue, please remove this fork.

fahadbraveknight commented 6 years ago

Having same issue. Please tell how to fix this.

thecodeguru360 commented 6 years ago

Try to use this import statement

import { UiSwitchModule } from 'ngx-toggle-switch/src'

codinronan commented 6 years ago

I have brought this repo up to date with the upstream repo, so it brings in all the AOT, NG5, bugfix goodies. Please note, the new version builds on Angular 5, hopefully you can update.

By the way the new version is now also published to NPM: https://www.npmjs.com/package/ngx-toggle-switch