web-dev-qa-db-fra.com

ngx-bootstrap - Impossible de trouver le module 'ngx-bootstrap/composant-loader'

Je travaille actuellement sur l'application angulaire CLI. Il ya quelques heures, j’ai terminé avec un projet d’arrêt et je veux maintenant en exécuter de nouveaux pour continuer mon travail. Mais au lieu de réussir la compilation du projet, je reçois une erreur sur le module ngx-bootstrap.

    ERROR in node_modules/ngx-bootstrap/dropdown/bs-dropdown.directive.d.ts(2,40): error TS2307: Cannot find module 'ngx-bootstrap/component-loader'.
node_modules/ngx-bootstrap/dropdown/bs-dropdown.state.d.ts(2,32): error TS2307: Cannot find module 'ngx-bootstrap/component-loader'.
node_modules/ngx-bootstrap/public_api.d.ts(2,26): error TS2307: Cannot find module 'ngx-bootstrap/utils'.
node_modules/ngx-bootstrap/public_api.d.ts(3,95): error TS2307: Cannot find module 'ngx-bootstrap/accordion'.
node_modules/ngx-bootstrap/public_api.d.ts(4,58): error TS2307: Cannot find module 'ngx-bootstrap/alert'.
node_modules/ngx-bootstrap/public_api.d.ts(5,78): error TS2307: Cannot find module 'ngx-bootstrap/buttons'.
node_modules/ngx-bootstrap/public_api.d.ts(6,83): error TS2307: Cannot find module 'ngx-bootstrap/carousel'.
node_modules/ngx-bootstrap/public_api.d.ts(7,51): error TS2307: Cannot find module 'ngx-bootstrap/collapse'.
node_modules/ngx-bootstrap/public_api.d.ts(8,284): error TS2307: Cannot find module 'ngx-bootstrap/datepicker'.
node_modules/ngx-bootstrap/public_api.d.ts(9,133): error TS2307: Cannot find module 'ngx-bootstrap/modal'.
node_modules/ngx-bootstrap/public_api.d.ts(11,107): error TS2307: Cannot find module 'ngx-bootstrap/pagination'.
node_modules/ngx-bootstrap/public_api.d.ts(12,90): error TS2307: Cannot find module 'ngx-bootstrap/progressbar'.
node_modules/ngx-bootstrap/public_api.d.ts(13,47): error TS2307: Cannot find module 'ngx-bootstrap/rating'.
node_modules/ngx-bootstrap/public_api.d.ts(14,102): error TS2307: Cannot find module 'ngx-bootstrap/sortable'.
node_modules/ngx-bootstrap/public_api.d.ts(15,117): error TS2307: Cannot find module 'ngx-bootstrap/tabs'.
node_modules/ngx-bootstrap/public_api.d.ts(16,73): error TS2307: Cannot find module 'ngx-bootstrap/timepicker'.
node_modules/ngx-bootstrap/public_api.d.ts(17,91): error TS2307: Cannot find module 'ngx-bootstrap/tooltip'.
node_modules/ngx-bootstrap/public_api.d.ts(18,116): error TS2307: Cannot find module 'ngx-bootstrap/typeahead'.
node_modules/ngx-bootstrap/public_api.d.ts(19,91): error TS2307: Cannot find module 'ngx-bootstrap/popover'.
node_modules/ngx-bootstrap/public_api.d.ts(20,146): error TS2307: Cannot find module 'ngx-bootstrap/utils'.
node_modules/ngx-bootstrap/public_api.d.ts(21,85): error TS2307: Cannot find module 'ngx-bootstrap/component-loader'.
node_modules/ngx-bootstrap/public_api.d.ts(22,87): error TS2307: Cannot find module 'ngx-bootstrap/positioning'.
node_modules/ngx-bootstrap/public_api.d.ts(25,15): error TS2307: Cannot find module 'ngx-bootstrap/locale'.

J'ai essayé d'installer le module ngx-bootstrap mais cela n'aide pas… .. Quelqu'un a eu le même problème que le mien?

2
plucins

Après mise à jour @ angular/cli et @ angular/core en v7, le problème est résolu. 

CLI angulaire: 7.0.6 Noeud: 8.9.4 OS: win32 x64 Angulaire: 7.1.0

3
plucins

Je viens d'avoir le même problème, mais dans mon cas, je ne pouvais pas mettre à niveau un cli ou un noyau angulaire, probablement tout tomberait en morceaux ... 

"ngx-bootstrap": "2.0.2"

précédemment utilisé "ngx-bootstrap": "^ 3.2.0" qui a causé ces mêmes problèmes. Merci pour l'allusion tho.

0
Kerim092