Not able to locate the animations folder in ngx-spinner folder in node_modules

675 Views Asked by At

Hi I am working on an angular project below mentioned are the version details of the same.

  • Angular v12
  • ngx-spinner v12

I am not able to locate the animations folder inside the ngx-spinner library in node_modules folder.

I have included the css file link in angular.json file

"styles": [
              "src/styles.scss",
              "node_modules/bootstrap/dist/css/bootstrap.min.css",  
              "node_modules/ngx-spinner/animations/ball-scale-multiple.css"
            ]

I used the command to install the ngx-spinner

npm i [email protected]

but the animations folder doesn't seem to exist in the node_modules folder below is a screenshot of the same

screenshot

Can you please let me know what could be the problem here

2

There are 2 best solutions below

1
AYHAN ÖZER On

i had the same problem. When installed with npm, it did not create the animations folder, just like you did. I first installed yarn with the command npm install -g yarn. After installing ngx-spinner with yarn command, it created animations folder. yarn add ngx-spinner

0
Anastasios Palasopoulos On

According to this https://gitter.im/ngx-spinner/community and the creator of the package make sure if your using older version of ngx-spinner(below v13) then you don't need to add css in angular.json file. So you don't need the reference nor the files in the version you are using. So delete the
"node_modules/ngx-spinner/animations/ball-scale-multiple.css" from angular.json