Skip to content

Module not found: Default condition should be last one #7005

@jfbaraky

Description

@jfbaraky

Describe your environment

  • Operating System version: macOS Monterey 12.4
  • Browser version: Google Chrome 109.0.5414.119
  • Firebase SDK version: 9.17.0
  • Firebase Product: any

Describe the problem

When installing the version 9.17.0, I was getting this error on the import:

Module not found: Default condition should be last one
> 1 | import { initializeApp, getApps, getApp } from 'firebase/app';
  2 | import { getAnalytics, isSupported } from 'firebase/analytics';
  3 | import { getAuth } from 'firebase/auth';

Doesn't matter the order of the imports.

Rolling back to the 9.16.0 solved the problem.

Steps to reproduce:

  1. yarn add firebase
  2. import any firebase lib

Relevant Code:

The error is happening on the import first firebase package, doesn't matter which one of them.

import { initializeApp, getApps, getApp } from 'firebase/app';
import { getAnalytics, isSupported } from 'firebase/analytics';
import { getAuth } from 'firebase/auth';

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions