Skimar
Skimar

Reputation: 129

Use of ng-ui-switch with angular 7

I'm trying to use ng-ui-switch but I don't have the file ui-switch.component.css in my files, with npm install ngx-ui-switch@^1.6.0 --save and same with npm install ngx-ui-switch --save...

I am using Angular 7.3.8.

I don't understand because the import in styles is "./node_modules/ngx-ui-switch/ui-switch.component.css" but this file doesn't exist. I've been looking for the file only, but the only thing I find is the npm install.

Upvotes: 0

Views: 1629

Answers (1)

Pujan Shah
Pujan Shah

Reputation: 845

Uninstall the package and install it again without the version so it will take the latest one. You will find the css file after installing the latest one.

Commands

npm uninstall ngx-ui-switch --save
npm install ngx-ui-switch --save

Upvotes: 2

Related Questions