Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uncaught ReferenceError: firebaseui is not defined

The website does not display anything. It gives the error: firebaseui not defined. I am running my code in eclipse, on my localhost web server. The error is displayed in "app.js" file of a sample web application I took from github. The output must show sign-in widgets.

var ui = new firebaseui.auth.AuthUI(firebase.auth());
like image 434
Prachi Jain Avatar asked Mar 09 '26 20:03

Prachi Jain


1 Answers

Add this into the HTML page's <head>, because firebaseui.js defines the missing firebaseui:

<script src="https://cdn.firebase.com/libs/firebaseui/3.5.2/firebaseui.js"></script>
<link type="text/css" rel="stylesheet" href="https://cdn.firebase.com/libs/firebaseui/3.5.2/firebaseui.css" />

This must be loaded before the app.js is being loaded, so the it won't be undefined anymore.

like image 92
Martin Zeitler Avatar answered Mar 12 '26 08:03

Martin Zeitler



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!