I need help implementing a spinner loader in my app. I have followed the instructions provided at [ https://www.npmjs.com/package/ngx-spinner ] and successfully installed it.
However, when trying to import and add it to "imports", I encountered the following error.
Uncaught TypeError: Object(...) is not a function at ngx-spinner.js:208 at Module../node_modules/ngx-spinner/fesm5/ngx-spinner.js (ngxspinner.js:210) at webpack_require (bootstrap:78) at Module../src/app/app.module.ts (app.component.ts:23) at webpack_require (bootstrap:78) at Module../src/main.ts (main.ts:1) at webpack_require (bootstrap:78) at Object.0 (main.ts:12) at webpack_require (bootstrap:78) at checkDeferredModules (bootstrap:45)
npm i ngx-spinner
npm install ngx-spinner --save
aap.module.ts
import { NgxSpinnerModule } from "ngx-spinner";
imports: [
// ...
NgxSpinnerModule
]
I am stuck with this error and would appreciate any assistance on how to resolve it. Thank you!