-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[Bug]safari browser Unable to open,not support static {...} #4246
Comments
@sedghi First of all, thank you for your reply。Because this issue has indeed occurred on both my Mac and phone, the issue should be whether the browser supports the writing style of "static {...}", and whether it is possible for Babel to further optimize it |
And I have tried many people's phones (including iPhone and Android), all of which have black screens, so I think it is a serious problem |
I think it's because it didn't take effect: @babel/plugin-transform-class-static-block |
I have also seen other users mention this issue (#3941) |
If ES2015 is added to this place, it may solve this problem:https://github.com/cornerstonejs/cornerstone3D/blob/main/packages/core/tsconfig.esm.json, |
@sedghi I asked https://github.com/cornerstonejs/cornerstone3D The tsconfig.esm.json in the core and tools have both been added with module: 'es2015' and target: 'es2015', and Safari will eventually be able to access them. I hope to synchronize or use other methods, which is very important to me. Thank you again |
Hmmm, how old is this safari? I was thinking to even target es2022 ... |
Describe the Bug
safari browser Unable to open https://viewer.ohif.org/
Steps to Reproduce
safari browsers Error unable to open https://viewer.ohif.org/
The current behavior
error info: SyntaxError: Unexpected token '{'
The expected behavior
Normal open https://viewer.ohif.org/
and Normal open Tag<v3.8.2>
OS
macOS 12.0.1
Node version
16.20.2
Browser
Safari 15.1
The text was updated successfully, but these errors were encountered: