• Resolved peq42

    (@peq42)


    Recently I started getting that error message when loading any page on my website
    “Uncaught SyntaxError: import declarations may only appear at top level of a module”

    and this seems to be causing the animated loading icon to never end.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter peq42

    (@peq42)

    It comes from a file generated by the plugin, called “wpo-minify-footer-e10a2b16.min.js”

    Plugin Support pbevanudp

    (@pbevanudp)

    Hello

    If you go to Minify >> Advanced and click Show information next to wpo-minify-footer-e10a2b16.min.js please could you let me know which processed files are shown in the list?

    Thread Starter peq42

    (@peq42)

    /wp-includes/js/hoverintent-js.min.js (1.68 KB) Exclude | Defer loading
    /wp-includes/js/admin-bar.min.js (3.45 KB) Exclude | Defer loading
    /wp-content/plugins/google-analytics-for-wordpress/lite/assets/vue/js/frontend.min.js (11.80 KB) Exclude | Defer loading
    /wp-content/themes/exs/assets/js/min/init.js (5.81 KB) Exclude | Defer loading
    /wp-content/themes/exs/assets/js/min/inverse.js (709 bytes) Exclude | Defer loading
    /wp-includes/js/comment-reply.min.js (2.91 KB) Exclude | Defer loading
    Plugin Support pbevanudp

    (@pbevanudp)

    Hello,

    Thank you for the list, Please could you temporarily disable caching and add these paths to Minify >> JavaScript >> Exclude JavaScript from processing, save changes and check to see if the issue resolves itself.

    If it does, it would be a case of removing the files one by one from the exclusion list, saving the changes and testing to see which of the files is causing this behaviour when processed.

    Plugin Support pbevanudp

    (@pbevanudp)

    Hello @peq42

    If you haven’t resolved this yet please try disabling merging of minified JavaScript files. Otherwise try excluding:

    /wp-content/plugins/google-analytics-for-wordpress/lite/assets/vue/js/frontend.min.js

    using the link next to this file under the show information section discussed previously.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Uncaught SyntaxError: import declarations may only appear at top level of a modu’ is closed to new replies.