0

Am new to Angular, so please be gentle.

Ever since I tried turning my angular app into a PWA I have been getting this error message:

ERROR in Failed to find exported name of node (function NgbAlertModule() {
}) in '/home/sirbt/angular/skuma/pescrow_admin/node_modules/@ng-bootstrap/ng-bootstrap/alert/alert.module.js'.

I have decided to do away with this module. Kindly guide me on where to find it and also how to remove this particular module.

Find attached my Angular environment:

enter image description here

Francesco
  • 9,947
  • 7
  • 67
  • 110
SirBT
  • 1,580
  • 5
  • 22
  • 51

2 Answers2

1

npm uninstall removes the module from node_modules, but not package.json

npm uninstall --save also removes it from dependencies in package.json

npm uninstall --save-dev also removes it from devDependencies in package.json

npm -g uninstall --save also removes it globally

0

I wrote a step by step guide to create PWAs with Angular (plus a working Github example). You can follow it to create your first PWA with ease.

About your question, if you want to remove ngboostrap, you should run this command from your console (and of course you have to remove the references to this library in your code):

npm uninstall @ng-bootstrap/ng-bootstrap

Usually if you install a library in Angular, this will be listed in your package.json file.
Therefore to remove it, you can run the npm command:

`npm uninstall package-name`

where package-name is the name you see in package.json file.

Francesco
  • 9,947
  • 7
  • 67
  • 110
  • Kindly help me with this: [https://stackoverflow.com/questions/58140786/how-do-i-git-pull-an-angular-app-to-a-local-angular-pwa-enabled-project] – SirBT Sep 27 '19 at 20:08