ng add error - catch clause variable is not an Error instance
See original GitHub issueVersion info
Angular:. 14.2.0
How to reproduce these conditions
- ng new App
- 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)
Issue Analytics
- State:
- Created 10 months ago
- Reactions:4
- Comments:5 (2 by maintainers)
you can also
npm install -g firebase-tools
firebase login
You can also work around this issue by installing
firebase-tools
as a dev dependency before running the schematic.e.g.