Skip to content

Files missing in [email protected] #6887

Closed
@jwalton

Description

@jwalton

Describe your environment

  • Operating System version: MacOS 13.0
  • Browser version: Any
  • Firebase SDK version: 9.15.0
  • Firebase Product: auth, possibly others

Describe the problem

Steps to reproduce:

$ npm install [email protected]
$ ls node_modules/firebase/auth/dist
analytics        auth             firestore        index.cjs.js.map index.mjs        messaging        storage
app              compat           functions        index.esm.js     index.mjs.map    performance
app-check        database         index.cjs.js     index.esm.js.map installations    remote-config

$ npm install [email protected]
$ ls node_modules/firebase/auth/dist
analytics        auth             esm              index.cjs.js     index.mjs.map    performance
app              compat           firestore        index.cjs.js.map installations    remote-config
app-check        database         functions        index.mjs        messaging        storage

Note that index.esm.js is missing, however this file is still referenced in node_modules/firebase/auth/package.json:

$ cat node_modules/firebase/auth/package.json
{
  "name": "firebase/auth",
  "main": "dist/index.cjs.js",
  "browser": "dist/esm/index.esm.js",
  "module": "dist/esm/index.esm.js",
  "typings": "dist/auth/index.d.ts"
}

As a result, if you for example import { getAuth } from 'firebase/auth'; and you use an ESM-based bundler like vite, then the build will work in 9.14.0, but fail in 9.15.0.

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