You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started a test with Karma and received the error TypeError: undefined is not a function. I tried to debug it and found out that: in the function createErrorFormatter in the file reporter.js this line couldn't be executed: msg = (msg || '').replace(URL_REGEXP, function (_, prefix, path, __, ___, line, ____, column) {...
The reason is the msg which was given in the method onKarmaError in the file browser.js is not a String and hence the replace function is undefined:
Surprisingly this issue occurs only when I test with Firefox and IE. There is no issue with Chrome and Safari.
The text was updated successfully, but these errors were encountered:
I started a test with Karma and received the error
TypeError: undefined is not a function
. I tried to debug it and found out that: in the functioncreateErrorFormatter
in the filereporter.js
this line couldn't be executed:msg = (msg || '').replace(URL_REGEXP, function (_, prefix, path, __, ___, line, ____, column) {...
The reason is the
msg
which was given in the methodonKarmaError
in the filebrowser.js
is not aString
and hence thereplace
function isundefined
:Surprisingly this issue occurs only when I test with Firefox and IE. There is no issue with Chrome and Safari.
The text was updated successfully, but these errors were encountered: