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

Hot fix: small quick update types for Server Side Rendering ( Angular Universal) #951

Closed
wants to merge 5 commits into from

Conversation

hiepxanh
Copy link

@hiepxanh hiepxanh commented Jun 21, 2018

Hello, I'm fixing types error when compiling AOT with angular universal

Discussion

fixing this issue Generic type 'Observer<V, E>' requires 2 type argument(s)

Testing

tested

API Changes

nope

@@ -279,12 +279,12 @@ export class FirebaseAuth {
languageCode: string | null;
settings: AuthSettings;
onAuthStateChanged(
nextOrObserver: Observer<any> | ((a: User | null) => any),
nextOrObserver: Observer<any,Error> | ((a: User | null) => any),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a space after the comma here and elsewhere.

@hiepxanh
Copy link
Author

@bojeil-google sir yes sir, sorry for my fault. I just updated it. Can you approve my pull request ? I'm very appreciate for that

@hiepxanh
Copy link
Author

hiepxanh commented Jun 21, 2018

screen shot 2018-06-21 at 4 37 02 pm
Sir, I find out that. The firebase-js-sdk project I cloned and run on the right is different from the code build in firebase-js-sdk I install from npm ? that causing the problem.

I believe that the npm version available for now is out of date compare with github code. May you fix that, my PR will be unnecessary and I will close it. @bojeil-google

@mmermerkaya
Copy link
Contributor

This should not be merged. As you can see from the Travis error, Observer requires one type argument.

The issue was #787 and it was fixed in #788. It will work if you use the latest version of the Firebase packages.

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

Successfully merging this pull request may close these issues.

4 participants