• Resolved hvmweb

    (@hvmweb)


    Hello, I recently experienced some issues with another plugin and contacted support, we found in the DevTools console that the cause was a JavaScript Syntax Error coming from WP-Optimize Minify:

    Uncaught SyntaxError: Cannot use import statement outside a module (at wpo-minify-footer-1a0051ac.min.js:109)

    The issue stopped after disabling Process JavaScript files on minify options, it previously caused an infinite loading loop on the User Private Files Plugin’s frontend file manager, so I would like to share this with you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Venkat Raj

    (@webulous)

    @hvmweb Thanks for reporting the issue.

    I have installed this plugin https://www.ads-software.com/plugins/user-private-files/ and enabled Minify html/css/js It worked fine at my end.

    Are you talking about Pro version?

    Anyways, the syntax error is
    > Cannot use import statement outside a module

    If the problem causing plugin uses modern javascript and make use of import statements, then it has to use bundler like webpack, to convert those source files into single file, so there is no need for @import

    Thread Starter hvmweb

    (@hvmweb)

    Hi, sorry for the delayed response.

    Yes, I’m currently using the PRO version of User Private Files, they pointed that out that it is based on JavaScript too, I will share your observation with the plugin’s support and inform you accordingly.

    Thanks for your answer.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Minify JS error’ is closed to new replies.