ng add error - catch clause variable is not an Error instance
- Langage dominant
- TypeScript
- Étoiles
- 7.8k
- Forks
- 2.2k
- Merge moyen
- 22 h 28 min
- PR mergées (30 j)
- 6
Description
### Version info
**Angular:**. 14.2.0
### How to reproduce these conditions
1. ng new App
2. ng add @angular/fire
### Debug output
** Errors in the JavaScript console **
An unhandled exception occurred: catch clause variable is not an Error instance
See "/private/tmp/ng-qfEJEW/angular-errors.log" for further details.
** Output from `/private/tmp/ng-qfEJEW/angular-errors.log` **
[error] AssertionError [ERR_ASSERTION]: catch clause variable is not an Error instance
at assertIsError (/xxx/node_modules/@angular/cli/src/utilities/error.js:19:26)
at AddCommandModule.runSchematic (/xxx/node_modules/@angular/cli/src/command-builder/schematics-command-module.js:304:43)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async AddCommandModule.executeSchematic (/xxx/node_modules/@angular/cli/src/commands/add/cli.js:283:20)
at async AddCommandModule.handler (/xxx/node_modules/@angular/cli/src/command-builder/command-module.js:111:24)
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Reproduisez l’échec avec `ng new App`, suivi de `ng add @angular/fire`, en utilisant Angular 14.2.0. Commencez par inspecter `src/utilities/error.js`, `src/command-builder/schematics-command-module.js` et `src/commands/add/cli.js` aux emplacements indiqués dans la trace de la pile. La tâche est terminée lorsque la commande add s’exécute jusqu’au bout sans l’assertion de la clause catch et signale correctement les erreurs.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, firebase, typescript
- Domaine
- cli
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100