Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while adding with ng add in Angular v 13.2.0 #211

Open
bkrajendra opened this issue Feb 2, 2022 · 9 comments
Open

Error while adding with ng add in Angular v 13.2.0 #211

bkrajendra opened this issue Feb 2, 2022 · 9 comments
Assignees
Labels

Comments

@bkrajendra
Copy link

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.

@Napster2210
Copy link
Owner

Related with #125

@Napster2210 Napster2210 added the bug label Feb 4, 2022
@Napster2210 Napster2210 self-assigned this Feb 4, 2022
@callmedeeray
Copy link

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

@gurlivleenkainth2000
Copy link

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

@malvica89
Copy link

malvica89 commented Nov 15, 2022

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

@ahmad-raza1
Copy link

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

@ahmad-raza1
Copy link

ahmad-raza1 commented Feb 2, 2023

$ 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.

@handcofr
Copy link

handcofr commented Feb 8, 2023

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

Handco

@jam-ayub
Copy link

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.

@chandimaezone
Copy link

Same issue is in the angular 16 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants