ngx-spinner icon indicating copy to clipboard operation
ngx-spinner copied to clipboard

Error while adding with ng add in Angular v 13.2.0

Open bkrajendra opened this issue 2 years ago • 9 comments

Error while adding with: ng add ngx-spinner

I am using it in Angular 13.2.0 Getting following error:

Error: An unhandled exception occurred: Collection "/Users/rajendrakhope/Documents/Dev/Angular/lib-upgrade/iag-base-ui/node_modules/ngx-spinner/schematics/collection.json" cannot be resolved.

bkrajendra avatar Feb 02 '22 02:02 bkrajendra

Related with #125

Napster2210 avatar Feb 04 '22 16:02 Napster2210

Can confirm, I'm also getting this error in Angular 14.0.2

callmedeeray avatar Jun 27 '22 20:06 callmedeeray

I'm facing same error, Cannot find module 'ngx-spinner' or its corresponding type declarations. in Angular 13.3.11

gurlivleenkainth2000 avatar Jul 28 '22 07:07 gurlivleenkainth2000

Facing the same issue, do not see schematics under ngx-spinner module and get the same error. Can we get some help with this? Angular version - 14.1.2

malvica89 avatar Nov 15 '22 20:11 malvica89

$ ng add ngx-spinner Skipping installation: Package already installed Collection "node_modules\ngx-spinner\schematics\collection.json" cannot be resolved.

ahmad-raza1 avatar Feb 01 '23 14:02 ahmad-raza1

$ ng add ngx-spinner Skipping installation: Package already installed Collection "node_modules\ngx-spinner\schematics\collection.json" cannot be resolved.

I have resolved the issue by copying all the css files from node_modules/ngx-spinner/animations and placing them in my assets directory. Afterward, imported the relevant stylesheet in style.css as follows:

@import ‘src/assets/<spinner.css>

Update the import statement by giving the correct filename.

ahmad-raza1 avatar Feb 02 '23 13:02 ahmad-raza1

No problem with Angular@~13 with yarn add ngx-spinner@~13

Handco

handcofr avatar Feb 08 '23 10:02 handcofr

I uninstalled spinner with

npm uninstall ngx-spinner

and reinstalled with

npm install ngx-spinner --force

Now that's work well.

This works for me, hope this works for you as well.

jam-ayub avatar Feb 26 '23 09:02 jam-ayub

Same issue is in the angular 16 as well.

chandimaezone avatar Sep 14 '23 14:09 chandimaezone