I finished a React app and would like to deploy it to Firebase. It's building fine with my Webpack localhost, but when I deploy and load with Firebase I get:
client.min.js:1 Uncaught SyntaxError: Unexpected token <
There isn't an angle bracket on that line. Not sure what else to include other than my firebase HTML ([my-company] is a different string in my code):
<script src="http://ift.tt/2ahSQAb"></script>
<script src="http://ift.tt/2bbF7iX"></script>
<script src="http://ift.tt/2b3Z8Hb"></script>
<script src="http://ift.tt/2bbEO7P"></script>
<script src="http://ift.tt/2b403XX"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyCFRYmS3bFScffCG8Ko7QRieDWExeaa_yE",
authDomain: "[mycompany]-records.firebaseapp.com",
databaseURL: "https://[mycompany]-records.firebaseio.com",
storageBucket: "[mycompany]-records.appspot.com",
};
firebase.initializeApp(config);
</script>
Aucun commentaire:
Enregistrer un commentaire