Skip to content
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

Codelab: can not use firebase_auth_web #124936

Closed
tndevDE opened this issue Apr 16, 2023 · 5 comments
Closed

Codelab: can not use firebase_auth_web #124936

tndevDE opened this issue Apr 16, 2023 · 5 comments
Assignees
Labels
p: firebase Firebase plugins r: solved Issue is closed as solved team-codelabs Owned by Codelabs team

Comments

@tndevDE
Copy link

tndevDE commented Apr 16, 2023

firebase_auth seems to be incompatible with firebase_ui_auth, as both require a different intl version as a dependency.

\Codelabs\firebase-get-to-know-flutter\step_02> flutter pub add firebase_auth_web
Because firebase_auth >=4.4.1 depends on firebase_auth_web ^5.3.1 which depends on intl ^0.17.0, firebase_auth >=4.4.1 requires intl ^0.17.0. And because every version of firebase_ui_auth depends on flutter_localizations from sdk which depends on intl 0.18.0, firebase_auth >=4.4.1 is incompatible with firebase_ui_auth. So, because gtk_flutter depends on both firebase_auth ^4.4.1 and firebase_ui_auth ^1.1.17, version solving failed.

@tndevDE
Copy link
Author

tndevDE commented Apr 16, 2023

I have switched to the stable version of flutter and now it works.

But in the description of "Codelab: Get to know Firebase for Flutter" it says you can also use the beta version.

You also need the following:

A browser of your choice, such as Google Chrome.
An IDE or text editor of your choice configured with the Dart and Flutter plugins, such as [Android Studio]> (https://developer.android.com/studio) or Visual Studio Code.
The latest stable version of Flutter or beta if you enjoy living on the edge.
A Google Account for the creation and management of your Firebase project.
The Firebase CLI logged in to your Google Account.

@darshankawar darshankawar added the in triage Presently being triaged by the triage team label Apr 17, 2023
@darshankawar
Copy link
Member

There's an open PR to update the intl version to latest: firebase/flutterfire#10317 which will possibly fix the issue.

For time being, you can use this solution.

Keeping this issue open for team's attention and to decide if anything need to be updated in respective codelab.

/cc @domesticmouse

@darshankawar darshankawar added team-codelabs Owned by Codelabs team p: firebase Firebase plugins documentation and removed in triage Presently being triaged by the triage team labels Apr 17, 2023
@domesticmouse
Copy link
Contributor

Thoughts @ericwindmill?

@ericwindmill
Copy link

ericwindmill commented Jun 6, 2023

This was a known issue with the Firebase for Flutter packages themselves. It was fixed recently. Please re-open and tag me if the problem comes up again.

@darshankawar darshankawar added the r: solved Issue is closed as solved label Jun 7, 2023
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p: firebase Firebase plugins r: solved Issue is closed as solved team-codelabs Owned by Codelabs team
Projects
None yet
Development

No branches or pull requests

4 participants