Title: Minify JS error
Last modified: April 21, 2023

---

# Minify JS error

 *  Resolved [hvmweb](https://wordpress.org/support/users/hvmweb/)
 * (@hvmweb)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/minify-js-error-3/)
 * 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](https://wordpress.org/support/users/webulous/)
 * (@webulous)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/minify-js-error-3/#post-16675028)
 * [@hvmweb](https://wordpress.org/support/users/hvmweb/) Thanks for reporting the
   issue. 
   I have installed this plugin [https://wordpress.org/plugins/user-private-files/](https://wordpress.org/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](https://wordpress.org/support/users/hvmweb/)
 * (@hvmweb)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/minify-js-error-3/#post-16696396)
 * 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.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [hvmweb](https://wordpress.org/support/users/hvmweb/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/minify-js-error-3/#post-16696396)
 * Status: resolved