Cannot read property 'host' of undefined

134 views
Skip to first unread message

Simke Pal

unread,
May 9, 2020, 10:52:48 AM5/9/20
to Firebase Google Group
Hello,

I updated my app with latest version of angular and firebase. Now I get this error and I don't know what is wrong (Cannot read property 'host' of undefined).
Can anyone please help me. What am I doing wrong?

Screenshot 2020-05-09 at 03.49.58.png



Tomo Suzuki

unread,
May 9, 2020, 11:59:36 AM5/9/20
to fireba...@googlegroups.com
When does the error happen?

Is vendor.js your code? If yes, would you share it including line number?



--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/87fbe09b-5be3-4052-bd2e-01f299fe4b62%40googlegroups.com.

Simke Pal

unread,
May 9, 2020, 7:32:56 PM5/9/20
to Firebase Google Group
No, this is generated code from all the vendors I user in my angular project. The part that is making problems is here and it is part of firestore.

console.log("#######################################");
console.log(this.JT);
console.log("#######################################");
return new Te(this.Lc, this.zT, this.JT.host, this.JT.ssl, this.JT.forceLongPolling);


I think, that the code that is making a problem in my case is here https://github.com/firebase/firebase-js-sdk/blob/master/packages/firestore/src/api/database.ts on line 464

Or in npm package code on @firebase/firestore/dist/index.cjs.js on line 13894

I am also using the ngrx with firebase, if here can be the problem.

Screenshot 2020-05-09 at 18.14.17.png






On Saturday, 9 May 2020 17:59:36 UTC+2, Tomo Suzuki wrote:
When does the error happen?

Is vendor.js your code? If yes, would you share it including line number?


On Sat, May 9, 2020 at 10:52 Simke Pal <simk...@gmail.com> wrote:
Hello,

I updated my app with latest version of angular and firebase. Now I get this error and I don't know what is wrong (Cannot read property 'host' of undefined).
Can anyone please help me. What am I doing wrong?

Screenshot 2020-05-09 at 03.49.58.png



--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fireba...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages