-
Notifications
You must be signed in to change notification settings - Fork 94
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
Version 10.0.0 breaks in Chrome 59 (or lower) #241
Comments
Edge and IE11 also are broken with a 10.0.0 version. Downgrading to 9.0.0 fixes only Edge. Guys, could you provide transpiling? |
We also ran into this problem and fixed it by transpiling our dependencies ourselves. To build your Then in your
As I understand it transpiling |
Our build pipeline was overhauled when we switched to TypeScript for v10. Apparently the new setup no longer transpiles object spread props. I'm willing to accept a PR if there's a simple fix, but only for the sake of convenience. This project targets the latest ECMAScript standard (or whatever TypeScript supports). If you need to target a browser which does not support this, you'll have to handle transpilation yourself. Usually this will automatically be handled by the framework you use (CRA, Next.js, Gatsby). We can't possibly provide pre-transpiled packages for all environments, and we also don't want to cripple the package by targeting the lowest common denominator (whatever that may be). Thanks for providing that excellent explanation @mbark, would you be willing to add a section about this to the installation docs? The docs are on GitHub too. |
Transpiling for legacy browsers is now explained in the docs. |
I wouldn't exactly call Edge a legacy browser though. Also, I don't think that doc will suite everyone - transpiling your entire node_modules folder can be extremely expensive, and also wasteful if |
Maybe both solutions could be documented @twgraham? The solution I suggested was based on the The additional transpile time from |
In Chrome version 59 (or lower) react-async version 10.0.0 breaks.
Browser reports
Uncaught SyntaxError: Unexpected token ...
, which appears to be located in react-sync. Here's the specific line:...getStatusProps(getInitialStatus(initialValue, promise || promiseFn))
This appears to be due to lack of transpilation from ES6 to ES5 in this particular version of react-async.
Downgrading to version of react-async 9.0.0 fixes the issue.
Although Chrome version 59 is 2.5 years old, there's a significant number of users using it, who reported an issue where application would load a blank screen.
The text was updated successfully, but these errors were encountered: