-
Notifications
You must be signed in to change notification settings - Fork 124
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
Empty page with "SyntaxError: expected expression, got '.'" on Firefox 60esr and Chromium 73 #230
Comments
Thanks for reporting. This is because the build system assumes that anything that supports ES modules will support modern js syntax like |
Actually, we should compile down to only features supported by whatever version supports es modules for each browser. E.g. async functions and classes are supported everywhere ES modules are supported, so they don't need to be compiled down. Optional chaining is not, so it should be transpiled down in the ES6 bundle. |
After some testing, the build created with vite loads in Chrome 73 but not in Firefox 61 because it seems to choke on this regex with the error |
After replacing the lookbehind I was able to load the app in Firefox 63, well before Firefox 78 (can only do limited testing through test account on browserstack) |
The service-worker seems to fail to load on older browsers though, for the same reason as before (it is not transpiled and we use |
Describe the bug
Hydrogen is broken on Firefox 60esr and all versions before 74 and Chromium 73 and all versions before 80, the page is only blank.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Page is properly displayed without issue
Desktop:
Desktop:
Additional context
Identical issue as matrix-org/matrix.to#193 (fixed in matrix-org/matrix.to@a464254 that I tried to apply without success) but for Hydrogen, the same applies here.
The text was updated successfully, but these errors were encountered: