Skip to content

Missing Dependency for @angular/fire/compat/database/database when angular/fire module is used in a library #3297

Open
@DieselBleifrei

Description

@DieselBleifrei

Version info

Angular:
12.1

Firebase:
9.0.2

AngularFire:
7.0.4

How to reproduce these conditions

Steps to set up and reproduce

  • setup a library that will use the angularFireDatabase in a service: import { AngularFireDatabase } from '@angular/fire/compat/database';
  • install library in local project. (linking the library will not cause any issues, the library has to be installed)
  • install firebase dependencies. (angular/fire, firebase)
  • after compiling angular compiler will fail with: The target entry-point "library-path" has missing dependencies: - @angular/fire/compat/database/database

Debug output

The target entry-point "library-path" has missing dependencies:

  • @angular/fire/compat/database/database

Expected behavior

As all the angular/fire and firebase dependencies are installed correctly, no compilation error should be shown.
I already tried just copying the service to the project, instead of importing it from the library and this works without any issues.

Actual behavior

Missing dependency error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions