Skip to content
Advertisement

Tag: firebase

require is not defined in Firebase?

I am trying to run a html file in Firebase staging environment. I have used Firebase npm package in the js code. But while running in the browser it throws error “require is not defined”. HTML Code: JS Code: Please suggest me some solution. Answer You need to setup a tool (such as webpack) to manage your dependencies. In this

How to change email in firebase auth?

I am trying to change/update a user’s email address using : But I am getting …changeEmail is not a function error. I found the reference here from the old firebase docu. So how to I do it in the 3.x version? Because I cant find a reference in the new documentation. Answer You’re looking for the updateEmail() method on the

Function from external JS file not being called

I am using webpack and firebase. I have this line in my package.json > “start”: “webpack-dev-server ./index.js”, In my index.js file I have function In my index.html file I have this line > <input type=”submit” onclick=logUserIn() value=”Log in”> When I click that button I get this error > Uncaught ReferenceError: logUserIn is not defined I also have this line in

Firebase Permission Denied

I’m relatively new to coding and am having trouble. I have this code to send data to firebase However, I keep getting the error: FIREBASE WARNING: set at /users/(GoogleID) failed: permission_denied 2016-05-23 22:52:42.707 firebase.js:227 Uncaught (in promise) Error: PERMISSION_DENIED: Permission denied(…) When I try to look this up it talks about rules for Firebase, which seems to be in a

Uncaught ReferenceError: Firebase is not defined

I am trying to follow the tutorial on designing a database in firebase, but I am getting the following error in the JavaScript console: Uncaught ReferenceError: Firebase is not defined Here is the link to the tutorial, and the code snippet that I was trying to run in the JavaScript console is: https://www.firebase.com/blog/2014-11-04-firebase-realtime-queries.html Answer In the heading, include the following:

Advertisement