あいつの日誌β

働きながら旅しています。

firebase の auth で Uncaught TypeError: this.ta is not a function と言われる

GoogleAuthProvider を使おうとしたら Uncaught TypeError: this.ta is not a function と言われるが、コンストラクターでした。

- const provider = firebase.auth.GoogleAuthProvider()
+ const provider = new firebase.auth.GoogleAuthProvider()