TypeError: Cannot call method 'log' of null

2 views
Skip to first unread message

Shaun

unread,
Jan 26, 2014, 11:29:19 PM1/26/14
to node-...@googlegroups.com
Has anyone seen this error before?

It seems to be happening with a console log state when I reload my application while it's running. Not sure the best way to handle this, I thought I would check before I went around trying to check if console exists, etc. Thanks!

Shaun

Ivan Koldaev

unread,
Feb 5, 2014, 3:27:30 PM2/5/14
to node-...@googlegroups.com
I am seeing this from time to time.
Sometimes it happens while the console is open, and despite that all calls to console.log in my application are wrapped with something like:
if (window.console && typeof console.log == 'function') console.log(...);

I just restart my application and other time it is not happening.

Chris Price

unread,
Feb 7, 2014, 12:50:28 AM2/7/14
to node-...@googlegroups.com
I'm also seeing this from time to time. It's usually some other error that's causing it, though, from my research. Getting rid of the calls to console.log will let the real error show through.
Reply all
Reply to author
Forward
0 new messages