getting error lastest firebase@9.0.0-beta.1

518 views
Skip to first unread message

Arun Kumar

unread,
Apr 30, 2021, 4:58:16 AM4/30/21
to Firebase Google Group
I'm getting the below error trying to import firebase using the lastest fire...@9.0.0-beta.1

``` import { getAuthonAuthStateChanged,signInWithEmailAndPassword,createUserWithEmailAndPassword } from "firebase/auth";
import { initializeApp } from "firebase/app";

```
```
import { initializeApp } from "firebase/app";
const firebaseApp = initializeApp(firebaseConfig);
export const firebaseAuth = getAuth();
```

Sam Stern

unread,
Apr 30, 2021, 4:59:40 AM4/30/21
to Firebase Google Group
Hi Arun,

There's no error in your message, can you share what's going wrong?  That code looks reasonable to me.

- Sam

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/4f68436d-58e3-491d-8146-acad66072937n%40googlegroups.com.

Arun Kumar

unread,
May 4, 2021, 4:47:11 AM5/4/21
to fireba...@googlegroups.com
I'm sorry. Forgot to add the error message.

` Attempted import error: 'createUserWithEmailAndPassword' is not exported from 'firebase/auth'.`


Thanks,
Arun



Sam Stern

unread,
May 4, 2021, 5:37:21 AM5/4/21
to Firebase Google Group
Hi Arun,

That's surprising because this function is definitely exported from the package:
https://firebase.google.com/docs/reference/js/v9/auth.md#createuserwithemailandpassword

Have you tried clearing your node_modules folder and re-installing your dependencies?

- Sam

Reply all
Reply to author
Forward
0 new messages