Problem getting installed and running Firebase

259 views
Skip to first unread message

Jeff Schuenke

unread,
May 21, 2020, 5:31:46 PM5/21/20
to Firebase Google Group
Hi All,

I am trying to install and run Firebase in an Angular app.  I have used the ng command to install: ng add @angular/fire

But I get errors:
ng add @angular/fire 
Skipping installation: Package already installed
An unhandled exception occurred: architect_1.createBuilder is not a function
See "/private/var/folders/41/883t8yzx5lz7nn8jzxpbj3dh0000gp/T/ng-1hJu8U/angular-errors.log" for further details.

Here is my NG version:

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 9.1.6
Node: 10.16.0
OS: darwin x64

Angular: 9.1.9
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.901.6
@angular-devkit/build-angular     0.901.6
@angular-devkit/build-optimizer   0.901.6
@angular-devkit/build-webpack     0.901.6
@angular-devkit/core              9.1.6
@angular-devkit/schematics        9.1.6
@angular/cli                      9.1.6
@angular/http                     7.2.16
@ngtools/webpack                  9.1.6
@schematics/angular               9.1.6
@schematics/update                0.901.6
rxjs                              6.5.5
typescript                        3.7.5
webpack                           4.42.0

Package.json:

{
"name": "exel-icontrol-desktop",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "~9.1.9",
"@angular/common": "~9.1.9",
"@angular/compiler": "~9.1.9",
"@angular/core": "~9.1.9",
"@angular/forms": "~9.1.9",
"@angular/http": "~7.2.16",
"@angular/platform-browser": "~9.1.9",
"@angular/platform-browser-dynamic": "~9.1.9",
"@angular/router": "~9.1.9",
"core-js": "^3.6.5",
"firebase": "^7.14.4",
"rxjs": "~6.5.5",
"tslib": "^1.10.0",
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.901.6",
"@angular/cli": "~9.1.6",
"@angular/compiler-cli": "~9.1.9",
"@angular/language-service": "~9.1.9",
"@types/jasmine": "~3.5.10",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^12.11.1",
"codelyzer": "^5.1.2",
"jasmine-core": "~3.5.0",
"jasmine-spec-reporter": "~5.0.2",
"karma": "~5.0.9",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~3.1.1",
"karma-jasmine-html-reporter": "^1.5.4",
"protractor": "~7.0.0",
"ts-node": "~8.10.1",
"tslint": "~6.1.2",
"typescript": "^3.7.5"
}
}


When I try ng serve I get:
ERROR in The target entry-point "@angular/fire" has missing dependencies: - @angular/core - @angular/common

Any help?

Kato Richardson

unread,
May 26, 2020, 2:47:47 PM5/26/20
to Firebase Google Group
Jeff,

@angular/core and @angular/common should already exist. I don't recall if they are peer dependencies or not (i.e. if you need to `npm i` or `npm i -g` them), but it looks like you missed a step in the CLI setup process. Also, I think you may need to ng update instead of ng add since you already have @angular/fire?

But nothing here looks specific to Firebase in any way. So if you can reproduce this is a new vanilla project setup (seems unlikely), I recommend submitting an issue on the GitHub repo for @angular/fire

☼, Kato

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/bd3b1912-539c-4e07-a1e8-a96499d92bb8%40googlegroups.com.


--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Reply all
Reply to author
Forward
0 new messages