• Hi!

    In the last two Elementor updates, the v4-shims.min.js file in the /assets/lib/font-awesome/js/ folder breaks my sites.

    After taking the v4-shims.js file, minimizing it with the Closure Compiler service and replacing the v4-shims.min.js file, all working properly.

    Please verify and correct it.

    Best Regards.
    Davide.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    Please send me a link to your site so I can check this further,

    v4-shims.min.js is a script that is meant to control the version update of font-awesome.
    It shouldn’t cause any issues with your site.

    Have you gone over our manual regarding update issues?
    https://docs.elementor.com/article/235-update-issues

    I hope this guide helped you solve this issue.

    Thread Starter shecky

    (@shecky)

    Hi @davidr90!

    Site is https://www.friulmdservice.it/.

    Update Elementor to version 2.8.1 a few minutes ago.
    Same problem: Autoptimize javascript error.

    SyntaxError: redeclaration of let l 
    note: Previously declared at line 49, column 371

    I have recompiled the file v4-shims.min.js with Closure Compiler service and replaced the original v4-shims.min.js with it.

    After replacement everything is working properly.

    Before replacement:

    After replacement:

    Hi,

    Have you tried updating to version 2.8.2? do you still see any layout issues with your site?

    Thread Starter shecky

    (@shecky)

    Hi @davidr90 !

    Same problem with version 2.8.2 and also with version 2.8.3 installed a few minutes ago…

    As already explained also on https://github.com/elementor/elementor/issues/9805#issuecomment-565361491, the problem seems to be due to the incorrect compression of the v4-shims.js file.

    Compressing this file with Closure Compiler and replacing the original compressede one with it everything works correctly again.

    Thread Starter shecky

    (@shecky)

    Problem is due to a variables redeclaration and is a problem of the package generated by FontAwesome, not an Elementor problem!

    I downloaded the FontAwesome package and checked the v4-shims.js and v4-shims.min.js files.

    v4-shims.js start as a function expression (IIFE) while v4-shims.min.js starts with the definition of two variables and this causes the problem.

    Recompiling file with Closure Compiler (based on v4-shims.js) also v4-shims.min.js start as a function expression (IIFE) and everything works again ??

    That’s all!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘FontAwesome v4-shims.min.js break sites’ is closed to new replies.