New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chrome, Syntax error. #10826
Comments
Would you mind providing the exact versions of Chrome, Safari and even Firefox? Additionally, the Linux distro and version as well (since that can dictate the version of the packages available)? My preliminary assumption would be the browsers with issues are a tad old, which has happened in the past with other Linux users (albeit those are more CSS issues to be fair), but I could be wrong here. |
Chrome: I don't think the issue primary related to OS. The first time appeared was on Windows, then tried on Linux and the same happened again. Here is the lines related to the error:
|
I host it on VPS, installed manually, running using Here more information:
I think |
@0xmodN Is it consistently failing, or only every now and again? Do you have any extensions enabled in Chrome? |
Consistently. Actually on two different devices for two different persons. I tried open it in |
Is this project somewhere live that we can checkout? We haven't seen this behavior on our end (or the cloud hosted service) 🤔 |
Same problem on Digital Ocean. |
@muum Same questions: Is it consistently failing, or only every now and again? Do you have any extensions enabled in Chrome? Is this project somewhere live that we can checkout? |
@rijkvanzanten Unfortunately I cannot share the live version. @muum Yes, we also use DO. |
Hello, the address is: The previous droplets were just doing it a few times per day. Now, this droplet started with this error. I couldn't login yet.
Tested on the following browsers (without extension)
Directus 9 on Ubuntu 18.04 |
@muum Your link worked well with me (?). Also, I tried to use |
@0xmodN do you use cloudflare just like me? |
@muum Yes! I do :) Cloudflare + DO. |
I've heard before that cloudflare can do some on-the-fly optimizations of bundles, so I'm getting curious if there's something in the specific configuration DO uses that might cause this :o |
@muum Odd! I'm not seeing it in Safari (15) or Edge (96), but I do see the issue on Firefox (93) on your domain 😵💫 |
@rijkvanzanten I'm just creating a ticket on DO. They mostly request logs :) but this seems to be a cloudflare + do integration problem |
I have good news @muum . I disabled the Auto Minify feature in Cloudflare then purged the cache, and worked like magic! |
@muum I just tried git diffing the output bundle from the build, and the same bundle served by your domain, and there is in fact a difference: Super difficult to tell what's different of course, seeing everything is minified, but something is being altered |
That definitely sounds like the culprit here! According to MDN:
It sounds to me like an over-zealous minifier stripped out a space where it shouldn't! |
@rijkvanzanten @0xmodN You are awesome guys! Thanks for your kind help. It is really fixed after disabling Cloudflare Auto minify + purging cache |
Thanks or confirming that! Another mystery solved 🕵🏻 |
@rijkvanzanten It looks like it fails on the zero dot constructor |
I solved it by disabling autominify for the cms domain, and also clearing the cache |
Preflight Checklist
Describe the Bug
Chrome unable to load javascript:
To Reproduce
Just install it as usual, Firefox works well.
Errors Shown
What version of Directus are you using?
9.4.0
What version of Node.js are you using?
16
What database are you using?
Postgres
What browser are you using?
Chrome, Safari
What operating system are you using?
Linux
How are you deploying Directus?
Installed manually
The text was updated successfully, but these errors were encountered: