At some point between starting my project and the bazillion lines of code later, the obfuscation began to fail, claiming there is likely a syntax error to blame. The code runs fine (always has) and I’ve used other online tools to do an independent syntax error and nothing is wrong.
I see other topics posted on the topic, but that was failing on blank projects and was fixed in 8.5.7.1. I’m running 8.5.8.2.
Any suggestions for an easy fix?
My only thought is to make a blank project and load the files one by one until I get the failure. (I could also try to comment ALL code and then uncomment file by file). I dread either of those options, so I’m asking here if there is something else (easier) to try. Maybe there’s a log file I can inspect?
This turns out to be happening in the widely used JSMIN library.
Specifically, on this line:
NSB.MsgBox(`Click ` +
`<a href='mailto:${aGameData.accountEmailArray[1]}` +
`?cc=${userLogic.userData.accountEmailString}` +
`&subject=Invitation%20from%20${userLogic.userData.accountEmailString}%20to%20play%20a%20game%20of%20Space%20Missile` +
`&body=Click%20${url.href.replaceAll("&", "%26")}'` +
`target='_self' rel='noopener noreferrer'>` +
`here</a>` +
` to open your email app, review the invitation, and send it.`, 0, "🚀 Space Missile");
JSMIN fails (see the &body line for an extra single quote).
I used this page to validate your code. I could only see the error if I looked at the Chrome console. I used binary splitting of your code to find the problem. JSMIN does not give a line number - it just fails.
We’ll look into this more, but this should at least get you going again.
Not sure if you tried deleting that one single quote, but I still get the same error.
I tried using your recommended tool, I but could not get all my code to produce an output. I may not know how to use it.
Either way, you seem confident that it is a spurious error that the browser isn’t catching. So, I will continue to use online tools, etc., to see if I can track it down.