angularangular-cliangular11ngx-spinner

ng add ngx-spinner : The package that you are trying to add does not support schematics


I'm new to Angular.

After executing ng add ngx-spinner, I encountered this error:

The error (ngx-spinner):

The package that you are trying to add does not support schematics. You can try using a different version of the package or contact the package author to add ng-add support.

How can I solve this problem? (How can I add the module manually?)

ng version

schematics


Solution

  • I uninstalled spinner with

    npm uninstall ngx-spinner
    

    and reinstalled with

    npm install ngx-spinner --force
    

    Now that's work well.

    https://github.com/Napster2210/ngx-spinner/issues/163#issuecomment-768826528