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

build broken after update to latest firebase plugins #37

Open
alexlovar opened this issue Sep 11, 2020 · 2 comments
Open

build broken after update to latest firebase plugins #37

alexlovar opened this issue Sep 11, 2020 · 2 comments

Comments

@alexlovar
Copy link

i update the yaml file to the latest firebase plugins

  firebase_auth: ^0.18.0+1
  cloud_firestore: ^0.14.0+2
  firebase_core: ^0.5.0
  firebase_storage: ^4.0.0
  firebase_messaging: ^7.0.0
  firebase_database: ^4.0.0

after this i get this error code when try to run the app

lib/resources/auth_methods.dart:6:1: Error: 'User' is imported from both 'package:firebase_auth/firebase_auth.dart' and 'package:skype_clone/models/user.dart'.
import 'package:skype_clone/models/user.dart';
@tejasbirsingh
Copy link

User has become the new name for Firebase User . And in this project we also have user model that we created so it leads to ambiguity . You need to rename the user model that we created to something else like UserData . And in all files where you used Firebaseuser change it to user. Hope it Helps! If you face any issue feel free to ask!

@Milimeter
Copy link

is that the only error that you are facing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants