SyntaxError: Unexpected token ‘=’ in js on older Macs
-
Hello Support,
Noticed that in some cases our Blog was not displaying images. Noticed the problem was evident on a couple of older Macs I have, but not on more recent ones.
Digging deeper, the siteground-optimizer-combined-js-…js file was giving an error “SyntaxError: Unexpected token ‘=’. Expected an opening ‘(‘ before a method’s parameter list” Googling the error phrase gives the github explanation of the error. Many many people have older Macs that cannot be readily upgraded to current versions of MacOS (as is the case of my older Mac). The github entry does suggest workarounds.
The file referenced above as its name says is combined js. However, as you will see the statement flagged is
class ApbctCore{ajax_parameters={};rest_parameters={};#selector=null;elements=[];#eventCallback;#eventSelector;#event;constructor(e){this.select(e)}select(e){return e instanceof
which is in apbct-public-bundle.min.jsAs you will see from the GitHub issue this is only evident in older versions of Safari, but as you probably know, older macs cannot upgrade to newer versions of MacOS and corresponding Safari versions. And many Macs last a long time. I have three that cannot be upgraded.
Our Contact Us form should you need it.
Thank you,
Barry Brunning
The page I need help with: [log in to see the link]
- The topic ‘SyntaxError: Unexpected token ‘=’ in js on older Macs’ is closed to new replies.