Skip to content

@angular/fire throws Error: Module not found: Error: Default condition should be last one #3316

Closed
@timucincicek

Description

@timucincicek

I've been using AngularCrashlytics(from @angular/fire) for a while interestingly since this morning I became unable to get either build or ng serve which throws error as below.Can someone help me to get rid of this?

image
On the app.module I've already added @angular/fire releated configuration steps as below(taken from https://github.com/angular/angularfire/blob/master/docs/analytics/getting-started.md)

import { AngularFireModule } from '@angular/fire/compat'; import { AngularFireAnalyticsModule } from '@angular/fire/compat/analytics'; imports:[ AngularFireModule.initializeApp(environment.Tools.Firebase)//firebase releated config, AngularFireAnalyticsModule ] 

I have configuration mentioned as below
image

Dependency versions from package.json

"firebase": "^9.14.0", "@angular/fire": "^7.4.1" 

Additional Note : Already cloned project from scratch many times have tried deleting node modules folder and npm install besides tried to upgrade both firebase and @angular/fire to the latest versions which didn't fix the issue.

See the stacloverflow ticket:https://stackoverflow.com/questions/75335661/angular-fire-throws-error-module-not-found-error-default-condition-should-be

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

      close