angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

error in the new update

Open jacorderodiaz opened this issue 6 years ago • 4 comments

ERROR in The target entry-point "@angular/fire" has missing dependencies:

  • firebase/app

jacorderodiaz avatar Mar 31 '20 22:03 jacorderodiaz

I understand you are new one. Please follow issues template, and provide us more information, how you can reproduce the error? can you provide example repository? copy your error log, screenshoot, and your example repository.... Or we don't know what to do with two line of description

hiepxanh avatar Apr 01 '20 09:04 hiepxanh

I can help because I'm seeing it, too. I was actually trying to make another repo for another issue when I ran into this. If you start a new project and run ng add @angular/fire the firebase package is not pulled in for you. So when you build, you get

ERROR in The target entry-point "@angular/fire" has missing dependencies:
 - firebase/app

Adding the firebase package manually fixed it.

smarth55 avatar Apr 02 '20 18:04 smarth55

I have the same issue. I just followed the instructions above: npm install --save firebase

Not sure what caused the issue, but it may be good to get this fixed.

christianmenz avatar Apr 04 '20 19:04 christianmenz

Makes no sense that generating a new Angular app ng new fire --minimal --routing and then running the schematics ng add @angular/fire doesn't also install the dependencies and wire everything up correctly.

package.json

{
  "name": "fire",
  "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.0",
    "@angular/common": "~9.1.0",
    "@angular/compiler": "~9.1.0",
    "@angular/core": "~9.1.0",
    "@angular/fire": "^6.0.0",
    "@angular/forms": "~9.1.0",
    "@angular/platform-browser": "~9.1.0",
    "@angular/platform-browser-dynamic": "~9.1.0",
    "@angular/router": "~9.1.0",
    "rxjs": "~6.5.4",
    "tslib": "^1.10.0",
    "zone.js": "~0.10.2"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.901.0",
    "@angular/cli": "~9.1.0",
    "@angular/compiler-cli": "~9.1.0",
    "@angular/language-service": "~9.1.0",
    "@types/node": "^12.11.1",
    "ts-node": "~8.3.0",
    "tslint": "~6.1.0",
    "typescript": "~3.8.3",
    "@angular-devkit/architect": "~0.900",
    "firebase-tools": "^8.0.0",
    "fuzzy": "^0.1.3",
    "inquirer": "^6.2.2",
    "inquirer-autocomplete-prompt": "^1.0.1"
  }
}

kresdjan avatar Apr 07 '20 12:04 kresdjan