firebase/app dependency not found

Asked

Viewed 366 times

-3

When using the command ng serve it returns the following message .

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

already excludes the node_modules and the package-lock.json and rode npm install again, but it didn’t work.

  • Questions cannot depend on external links. o Stack Overflow Survival Guide in English can help the [Edit] post. Important to try to provide a [mcve] or a description that shows how to reproduce the problem.

1 answer

1


You forgot to put the dependency on firebase itself.

npm i firebase

Taking the opportunity, you have some mistakes in the class src app app.component.ts

  1. Missing add } at end of file
  2. The import of Angularfirestore is wrong, the correct is: import { AngularFirestore } from '@angular/fire/firestore';

Browser other questions tagged

You are not signed in. Login or sign up in order to post.