Skip to content

import firebase version 8.6.4 cannot compile on npm install - react #4977

@ghost

Description

  • Browser version: nodejs v14.17.0
  • Firebase SDK version: 8.6.4

Steps to reproduce: npm install firebase @8.6.4 and import firebase from "firebase" within react. on npm start, recieve "failed to compile" start error

when attempting to import firebase in React, I am met with the error below.

./node_modules/@firebase/firestore/dist/esm5/prebuilt-db9cc925-eb007c37.js
Attempted import error: 'FetchXmlHttpFactory' is not exported from '@firebase/webchannel-wrapper' (imported as 'v').

by removing the FetchXmlHttpFactory import within the referenced prebuilt file above, I can get Firebase to compile correctly within React.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions