Anyone encountered this before? ``` Uncaught Synt...
# avo-2
w
Anyone encountered this before?
Copy code
Uncaught SyntaxError: identifier starts immediately after numeric literal avo.js:1:6386
It's causing a bunch of things to not work, but I only get it on my prod server, not local dev.
l
hmm. the only thing that comes to mind is one episode when somebody mentioned they were using cloudflare
and cloudflare minimized theyr assets
w
Well I'm using Cloudflare as well
So that could be it
l
yeah
can you try to turn the minification off
w
Let me bypass it real quick and see
l
sure!
because we're minifying the JS when we pack the gem. and further minification could break that
w
Well look at that, that works fine now. Ill see about adding some page rules in to just turn it off for the admin section of the site. Cheers
l
not sure what breaks. It shouldn't do that
w
Cloudflare Dashboard -> Page Rules -> Create one for your site I.E. www.example.com/path/to/avo.js Set it to Disable Performance on that file and it should stop the auto minify. Just takes a while for the rule to take effect
l
Thank you for this. I’ll make sure I add it to the docs too
Quick question. Have you checked the docs for this issue? Or, where did you try to look for a resolve first? I’m trying to see how I can surface things like these better.
w
Well, being the terrible person I am XD I did a quick search here and then posted. I did check the Github issues list and discussion after that though. I probably wouldn't check the normal docs for a very specific technical issue like this.
l
Got it. Makes sense
I’ll probably create and close an issue on github
This is what I don’t like about discord support. It’s not indexable by google
9 Views