The error was caused by an attempt to invoke console.logWarn, which isn't a valid method in the JavaScript console API. Consequently, this triggered the error displayed below.