Title: uncaught syntaxerror unexpected token &lt; jetpack
Last modified: January 13, 2023

---

# uncaught syntaxerror unexpected token < jetpack

 *  Resolved [Vinod Kumar](https://wordpress.org/support/users/vinodsoftcripts/)
 * (@vinodsoftcripts)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-jetpack/)
 * We have got the uncaught syntax error unexpected token < from jetpack JS code.
   It was fixed once we cleared the WP rocket cache. We want to know what caused
   the issue.
 * }, s.Deferred.exceptionHook = E.exceptionHook), s
 * }); < html > < head > < title > 404 Not Found < /title></head > < body > < center
   > < h1 > 404 Not Found < /h1></center > < hr > < center > nginx < /center></body
   > < /html>;!function(){var e={775:function(e){let n;window._tkq=window._tkq||[];
   const t=console.error;const o={initialize:function(e,n){o.setUser(e,n),o.identifyUser()},
   mc:{bumpStat:function(e,n){const t=function(e,n){let t=””;if(“object”==typeof
   e)for(const n in e)t+=”&x_”+encodeURIComponent(n)+”=”+encodeURIComponent(e[n]);
   else t=”&x_”+encodeURIComponent(e)+”=”+encodeURIComponent(n);return t}(e,n);(
   new Image).src=document.location.protocol+”/ / pixel.wp.com / g.gif ? v = wpcom–
   no – pv “+t+” & t = “+Math.random()}},tracks:{recordEvent:function(e,n){n=n||{},
   0===e.indexOf(“
 * jetpack_ “)?window._tkq.push([“
 * recordEvent “,e,n]):t(‘- Event name must be prefixed by “
 * jetpack_ “‘)},recordPageView:function(e){o.tracks.recordEvent(“
 * jetpack_page_view “,{path:e})}},setUser:function(e,t){n={ID:e,username:t}},identifyUser:
   function(){n&&window._tkq.push([“
 * identifyUser “,n.ID,n.username])},clearedIdentity:function(){window._tkq.push([“
 * clearIdentity “])}};e.exports=o}},n={};var t=function t(o){var r=n[o];if(void
   0!==r)return r.exports;var i=n[o]={exports:{}};return e[o](i,i.exports,t),i.exports}(
   775);window.analytics=t}();var eio_lazy_vars={“
 * exactdn_domain “:”
 * [https://capture.dropbox.com/gaVUO6CRxQ3c28dQ](https://capture.dropbox.com/gaVUO6CRxQ3c28dQ)
 * [https://capture.dropbox.com/bDzri9HA2ZLZAkMR](https://capture.dropbox.com/bDzri9HA2ZLZAkMR)
    -  This topic was modified 3 years, 4 months ago by [Vinod Kumar](https://wordpress.org/support/users/vinodsoftcripts/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcaught-syntaxerror-unexpected-token-jetpack%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Dan (a11n)](https://wordpress.org/support/users/drawmyface/)
 * (@drawmyface)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-jetpack/#post-16377763)
 * Hi there. This looks like an issue with your caching settings, as it looks like
   one of the JS files that WP Rocket was concatenating was returning a 404, and
   instead of not concatenating anything in this case, it added in the contents 
   of the 404 page, causing the error.
 * If you’re able to reproduce the error on a test site running only Jetpack and
   WP Rocket, please let us know so we can investigate further.

Viewing 1 replies (of 1 total)

The topic ‘uncaught syntaxerror unexpected token < jetpack’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Dan (a11n)](https://wordpress.org/support/users/drawmyface/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-jetpack/#post-16377763)
 * Status: resolved