+ 3

Firebase issue on Codepen?

I ported my simple chat group from SL to codepen but it doesn't seem to be working fine on codepen. It's connecting to firebase but isn't getting all the messages. Any suggestions as to what might be the problem? Codepen code: https://codepen.io/nderitu/pen/jxbxJv SL code: https://code.sololearn.com/WFaECBnd7Ep2/?ref=app

23rd Apr 2018, 5:04 AM
Nick Nderitu
Nick Nderitu - avatar
8 ответов
+ 4
If you check the browser console in CodePen you will have a good reference of what is happening. Apparently you have a problem with CORS support. Even so, check this link, I have the impression that this could help you: https://github.com/zalmoxisus/redux-devtools-extension/issues/123 https://github.com/18F/federalist/issues/1589
23rd Apr 2018, 6:26 AM
Mickel
Mickel - avatar
+ 3
@Xan try it now
23rd Apr 2018, 5:15 AM
Nick Nderitu
Nick Nderitu - avatar
+ 3
@Xan I will though the same code is working well on Sololearn.
23rd Apr 2018, 5:28 AM
Nick Nderitu
Nick Nderitu - avatar
+ 3
will do. Thanks for the help
23rd Apr 2018, 5:41 AM
Nick Nderitu
Nick Nderitu - avatar
+ 2
Try running your JavaScript code through JSHint.com. It can sometimes pick up obvious errors in code. Also run your HTML through this: https://validator.w3.org/
23rd Apr 2018, 5:26 AM
Emma
+ 1
Your Codepen URL gives a 404.
23rd Apr 2018, 5:14 AM
Emma
+ 1
True. Maybe different platforms handle warnings differently though? It's a long shot, but might be worth a quick look. Aside from that, could you write some thorough tests to check the messages?
23rd Apr 2018, 5:36 AM
Emma
+ 1
Nick Nderitu quick question how did you add your freecode camp account
13th May 2018, 11:33 AM
Hethal
Hethal - avatar