Skip to content

Project fails to start on 8.6.4 #4981

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
yeegor opened this issue Jun 4, 2021 · 4 comments
Closed

Project fails to start on 8.6.4 #4981

yeegor opened this issue Jun 4, 2021 · 4 comments

Comments

@yeegor
Copy link

yeegor commented Jun 4, 2021

Describe your environment

  • Operating System version: macOS Big Sur 11.2.3
  • Browser version: unrelated
  • Firebase SDK version: 8.6.4
  • Firebase Product: firebase

Describe the problem

Steps to reproduce:

  1. Initialize the application with create-react-app
  2. Install yarn add [email protected]
  3. Have the sample code (from below) in any component
  4. Start the application, receive the following error:
$ react-scripts build
Creating an optimized production build...
Failed to compile.

./node_modules/@firebase/firestore/dist/esm5/prebuilt-db9cc925-eb007c37.js
Attempted import error: 'FetchXmlHttpFactory' is not exported from '@firebase/webchannel-wrapper' (imported as 'v').
  1. Roll one version back yarn add [email protected]
  2. See that the project starts properly

Relevant Code:

import firebase from 'firebase';

class SignIn extends PureComponent {
    componentDidMount() {
        const provider = new firebase.auth.GoogleAuthProvider()
        firebase.auth().signInWithRedirect(provider)
    }
}
@google-oss-bot
Copy link
Contributor

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@Auxx
Copy link

Auxx commented Jun 4, 2021

Same stuff here. Downgraded to 8.6.3 and everything works.

I started a brand new Angular project following @angular/fire quick start guide https://github.com/angular/angularfire/blob/master/docs/install-and-setup.md

@jdevalez
Copy link

jdevalez commented Jun 4, 2021

this is duplicate of #4977

@looptheloop88
Copy link

Hi @yeegor, thanks for the report. I will mark this issue as duplicate of #4977.

@firebase firebase locked and limited conversation to collaborators Jul 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants