• Hello,

    since the last update to 15.4.0 I get an error in the WP-Admin Area with “Rank-Math” Plugin.
    I can’t see anything on the Analyze-Page. Console output there:

    stats.js?ver=1.0.110.2:1 Uncaught ReferenceError: lodash is not defined
        at stats.js?ver=1.0.110.2:1:150015
        at stats.js?ver=1.0.110.2:1:667259
        at stats.js?ver=1.0.110.2:1:667262
    (anonymous) @ stats.js?ver=1.0.110.2:1
    (anonymous) @ stats.js?ver=1.0.110.2:1
    (anonymous) @ stats.js?ver=1.0.110.2:1
    stats.js?ver=3.0.32.1:1 Uncaught ReferenceError: lodash is not defined
        at stats.js?ver=3.0.32.1:1:140288
        at stats.js?ver=3.0.32.1:1:749464
        at stats.js?ver=3.0.32.1:1:749468
    (anonymous) @ stats.js?ver=3.0.32.1:1
    (anonymous) @ stats.js?ver=3.0.32.1:1
    (anonymous) @ stats.js?ver=3.0.32.1:1

    One of the js-files:

    var a, c = jQuery, l = r.n(c), s = wp.element, u = lodash, f = r(4184), p = r.n(f), h = r(7363), d = r.n(h);
            function m() {
                return m = Object.assign ? Object.assign.bind() : function(e) {
                    for (var t = 1; t < arguments.length; t++) {
                        var r = arguments[t];
                        for (var n in r)
                            Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n])
                    }
                    return e
    

    After deactivate the Gutenberg-Plugin, the Rank-Math Analytic site works well.
    I also started a Ticket on RankMath side.

    Thanks and regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • It looks like the stats.js file (is that from RankMath?) is trying to use the lodash script, which is not loaded. Lodash is something that I know core/Gutenberg has been moving away from and might not be loading anymore. My guess is that the stats.js script didn’t declare lodash as a dependency.

    Thread Starter DarkWolfCave

    (@darkwolfcave)

    Hello and thanks for your answer.
    Yes the stats.js is from RankMath. I will attach this to the ticket at rank math. let’s see what happens. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘lodash issue after last update with RankMath’ is closed to new replies.