• Resolved consumedesign

    (@consumedesign)


    Great plug in so far but trying to get my jQuery to minify and work but get this error, hoping it can be fixed? Anyone know what it might be?

    footer-7e715ad4-1551282633.min.js:27 Uncaught Error: Cannot find module 'function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}'
        at o (footer-7e715ad4-1551282633.min.js:27)
        at footer-7e715ad4-1551282633.min.js:37
    o @ footer-7e715ad4-1551282633.min.js:27
    (anonymous) @ footer-7e715ad4-1551282633.min.js:37
Viewing 1 replies (of 1 total)
  • Plugin Author Raul P.

    (@alignak)

    That probably means, somewhere on your html there is a script checking for jQuery, but jQuery is being merged and minified AND being enqueued after that (IE: Being deferred or put in the footer).

    Ideally that script code would be merged with the js file, and it will be in the future versions of FVM, but for now you have to exclude jQuery or possibly other js files.

    If you have other plugins moving or changing the order of scripts, disable them.
    Also make sure the error is not there, once FVM is disabled ??

    If excluding jquery doesn’t work for this, there are faqs for the ignore list:
    https://www.ads-software.com/plugins/fast-velocity-minify/faq/

    And finally, if none of this works, perhaps try the autoptimize plugin, since it’s easier to setup for non developers.

Viewing 1 replies (of 1 total)
  • The topic ‘Error: Cannot find module’ is closed to new replies.