In case you can't upgrade your project to use @angular/cli > v12, you can install [email protected] in your project.
You can find more details about that in this link https://github.com/willmendesneto/ngx-skeleton-loader/issues/150#issuecomment-1638612329