• Hi.

    I’m getting an error whilst using this plugin in conjunction with require.js in my theme.

    [Error] Error: Mismatched anonymous define() module: function () {return d;}
    http://requirejs.org/docs/errors.html#mismatch
    ca (require.js, line 8)
    w (require.js, line 12)
    J (require.js, line 15)
    (anonymous function) (require.js, line 26)

    I removed all other JS from the page so it only loaded require.js and had the plugin enabled.

    I narrowed it down to picturefill, but I’m unsure how to resolve the issue (other than turning off the plugin).

    Any ideas?

    https://ww.wp.xz.cn/plugins/ricg-responsive-images/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter mattkersley

    (@mattkersley)

    error also appears in firefox, but allows the code to continue running (but doesn’t in safari).

    Plugin Author tevko

    (@tevko)

    Hey Matt, I’d encourage you to raise an issue here -https://github.com/scottjehl/picturefill

    Plugin Author tevko

    (@tevko)

    you can also deque picturefill if you’d like

    Thread Starter mattkersley

    (@mattkersley)

    Thanks, added the new issue and will dequeue the JS for now.

    https://github.com/scottjehl/picturefill/issues/446

    Thread Starter mattkersley

    (@mattkersley)

    The github issue has been updated, and the fix in in the beta of picturefill.
    I’ve updated the plugin locally for now, but it’d be good to know if/when the change will be ported (I’m guessing when it goes public instead of beta)?

    Plugin Contributor Joe McGill

    (@joemcgill)

    Thanks for following up on this. We’ll look at updating picturefill in an upcoming release, but in the mean time you can dequeue the function we use to load picturefill, tevkori_get_picturefill(), and load a different version instead.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘error in safari when using require.js’ is closed to new replies.