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

TypeError: can't access property "delete", _firebase_util__WEBPACK_IMPORTED_MODULE_0__.getModularInstance(...) is undefined #82

Closed
cysabi opened this issue Dec 4, 2022 · 1 comment

Comments

@cysabi
Copy link

cysabi commented Dec 4, 2022

When attempting to use the useAuthDeleteUser hook, I recieve this error:

TypeError: can't access property "delete", _firebase_util__WEBPACK_IMPORTED_MODULE_0__.getModularInstance(...) is undefined

My code for this is nearly identical to another function that uses the useAuthSignOut hook, and that one does not fail.

@cysabi
Copy link
Author

cysabi commented Dec 4, 2022

Ah, based on this unmerged pr, it seems the documentation has misleading information.

Updating the code as shown in the pr now has it work as expected.

Although to be honest, I think it's a bit odd that this hook's arguments are inconsistent with the useAuthSignOut hook, especially given that the official firebase sdk's recommended way to delete / sign out a user are consistent.

There's no reason these 2 hooks should be different.

@cysabi cysabi closed this as completed Dec 4, 2022
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

1 participant