lgosse / 404Website

This is the repo of the 42's BDE 404 website
https://website-d0a07.firebaseapp.com/
0 stars 0 forks source link

Production building doesn't work because of Firebase #28

Closed c-t-n closed 7 years ago

c-t-n commented 7 years ago

Hey,

Bon j me la pete en anglais, mais on fait face a un ptit souci pour mettre le site en mode prod.

En gros, pour mettre le site en prod je dois faire un ng build -prod pour enlever tout le debug.

Souci : Ca nique l'authentification Firebase pour whatever reason...

Je fais une backtrace :

t {code: "app/invalid-app-argument", message: "Firebase: firebase.auth() takes either no argument…irebase App instance. (app/invalid-app-argument).", name: "auth", stack: "FirebaseError: Firebase: firebase.auth() takes eit…r/vendor.2db997a8b8e978e668d8.bundle.js:312:4393)"}
code : "app/invalid-app-argument"
message : "Firebase: firebase.auth() takes either no argument or a Firebase App instance. (app/invalid-app-argument)."
name : "auth"
stack : "FirebaseError: Firebase: firebase.auth() takes either no argument or a Firebase App instance. (app/invalid-app-argument).
    at o (https://bde.42.fr/vendor.2db997a8b8e978e668d8.bundle.js:673:4725)
    at Object.c [as auth] (https://bde.42.fr/vendor.2db997a8b8e978e668d8.bundle.js:673:4166)
    at n.YWx4.n.ngOnInit (https://bde.42.fr/main.4b78dfde7cf42065530c.bundle.js:1:222477)
    at Xe (https://bde.42.fr/vendor.2db997a8b8e978e668d8.bundle.js:284:3656)
    at In (https://bde.42.fr/vendor.2db997a8b8e978e668d8.bundle.js:312:4900)
    at An (https://bde.42.fr/vendor.2db997a8b8e978e668d8.bundle.js:312:4692)
    at Zn (https://bde.42.fr/vendor.2db997a8b8e978e668d8.bundle.js:312:8751)
    at Object.updateDirectives (https://bde.42.fr/main.4b78dfde7cf42065530c.bundle.js:1:48390)
    at Object.updateDirectives (https://bde.42.fr/vendor.2db997a8b8e978e668d8.bundle.js:312:7933)
    at Object.Tn [as checkAndUpdateView] (https://bde.42.fr/vendor.2db997a8b8e978e668d8.bundle.js:312:4393)"

T as moyen de voir pourquoi ca chie comme ca ? :)

Merci mon bon lucas <3

lgosse commented 7 years ago

Fixed. Faudra build avec ng build --prod --aot maintenant ! Meilleure perf !