Cannot find module '@firebase/app-types/private' - Firebase throws error

UPDATE April/2018:

package.json:

"angularfire2": "^5.0.0-rc.6",
"firebase": "^4.12.1",

npm install


It's a known issue that it's a problem with the newest npm firebase package (v4.8.1).

You need to roll back your firebase version back to 4.8.0. It was an issue with type definitions and its no longer work after updating from 4.8.0 to 4.8.1.

To fix this one,

Step 1: Uninstall with the following command

npm uninstall --save firebase

Step 2: Now, open your package.json file. There, you will find:

"angularfire2": "^5.0.0-rc.4"

Step 3: Below this line, add a this line (without the Caret(^) symbol): and save

"firebase": "4.8.0"

Step 4: Now do an npm install. Your app should work

Latest Update

This specific issue has been resolved with the pull request #391. Ionic team will also be rolling back part of the change that surfaced this so you shouldn't see the issue any more 😄 in the next release.