Uncaught SyntaxError: Unexpected token ‘:’
-
Hi, Hector!
I use optimization plugin on my website (Asset Cleanup Pro). And it has an option to combine loaded javaScript into fewer files. I enabled it a long time ago, and noticed that the only problem that appears, is with your plugin. So I had to add it in exceptions.
Several months later I decided to remove it from exceptions and recheck. The problem is still there. So I want to show it:
After turning on js combining, in Google Dev console appears an error: Uncaught SyntaxError: Unexpected token ‘:’ (/wordpress-popular-posts/assets/js/wpp.min.js file). And popular posts design in sidebar gets broken.
Also, I have a plugin WP Front Notification bar. I added a fixed bar with text and button at the bottom of my website. For some reason, if I remove your js file from combining exception, then this bar disappers. Even though it’s files are not added in any exceptions.
Here are screenshots:
Now I returned your file back to exceptions. I hope, you can solve this, so I don’t need to add your file in exceptions anymore!
The page I need help with: [log in to see the link]
- The topic ‘Uncaught SyntaxError: Unexpected token ‘:’’ is closed to new replies.