org.mozilla.javascript.JavaScriptException

TypeError: Cannot call method "replace" of undefined (script#5)

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web24

  • TypeError: Cannot call method "replace" of undefined (script#5)
  • TypeError: Cannot read property "id" from undefined (jshint library#5571) at org.mozilla.javascript.gen.jshint_library_20._c_anonymous_218(jshint library:5571) at org.mozilla.javascript.gen.jshint_library_20.call(jshint library)
  • [object Object] at org.mozilla.javascript.gen.unnamed_script_4._c_anonymous_0(unnamed script:0) at org.mozilla.javascript.gen.unnamed_script_4.call(unnamed script)
  • Stack trace

    • org.mozilla.javascript.JavaScriptException: TypeError: Cannot call method "replace" of undefined (script#5) at org.mozilla.javascript.gen.script_11._c_anonymous_11(script:5) at org.mozilla.javascript.gen.script_11.call(script) at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:119) at org.mozilla.javascript.gen.script_11._c_anonymous_9(script:5) at org.mozilla.javascript.gen.script_11.call(script) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76) at org.mozilla.javascript.gen.script_11._c_script_0(script:11) at org.mozilla.javascript.gen.script_11.call(script) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3178) at org.mozilla.javascript.gen.script_11.call(script) at org.mozilla.javascript.gen.script_11.exec(script)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.