Hey just wondering if anyone has
# avo-2
l
Hey, just wondering if anyone has encountered this weird issue? I've been building admin CMS on development and has been working fine, I deployed to staging environment and realized that avo is not working as expected. (Note: I have a PRO licence and my license key is set accordingly btw). I ran into
Uncaught SyntaxError: Invalid or unexpected token (at avo.base.js:1:6418)
error and as shown in the screenshot, it complained on line 1 column 6418. but I'm not able to figure out what's causing this issue. In the development environment this
avo.base.js
is not minified and not causing this error, but in staging it's minified and maybe what's causing this? Does anyone encounter this issue? and wondering if anyone has any pointers on how to resolve this issue? Thanks.

https://cdn.discordapp.com/attachments/740893011994738751/1135576941785792643/image.png

https://cdn.discordapp.com/attachments/740893011994738751/1135576942054223942/image.png

being My gut feeling is that this may be due to licensing not configured correctly for staging? The staging site is https://staging.marketing-interactive.com/administrator_v2/

https://cdn.discordapp.com/attachments/1135576942255546408/1135586737293373642/image.png

okay, I've managed to fix this issue. for those who also come into this issue in the future, TLDR; it's due to Cloudflare's auto-minify. See: * https://community.cloudflare.com/t/minification-produces-invalid-javascript/406236 * https://stackoverflow.com/questions/38968598/what-happened-inside-of-1-tostring-and-1-tostring-in-javascript
l
yeah. I think I heard someone else having the same issue with cloudflare
thanks for reporting this back
I'd love to be able to fix it for good
2 Views