-
-
Notifications
You must be signed in to change notification settings - Fork 348
[Bug?] Error: IE11 does not support 'includes' method #698
Comments
You need to use a polyfill. Should be probably mentioned in docs, thanks for heads-up. I recommend: https://polyfill.io |
@FredyC In actuality, i used
I will need to reconfirm babel config. I understood that this library not support IE11. |
As long as you use MobX 4, it should be supported just fine. Don't use Babel for polyfill, that would be too big. That service I've mentioned detects and serves only polyfills that browser needs. You just need to add a script in your index.html. <script crossorigin="anonymous" src="https://polyfill.io/v3/polyfill.min.js?features=Array.prototype.includes"></script> |
@sergei-startsev it is mobx-react that is compatible with mobx 4. I don't see how IE 11 compatibility logically follows from that. (mobx-react@5 is also compatible with mobx 4, and compatible with IE 11, and React 0.13, which isn't the case for 6 either). The table is just state that one can use mobx-react@6 with mobx 4. @FredyC I think in this specific case we can just change the code to |
@mweststrate At least it should be in the list of breaking changes like a note about React support. |
That is the problem with browser incompatibilities, you don't know that
you've introduced them until someone run into it 😪
Op ma 17 jun. 2019 20:58 schreef Sergei Startsev <[email protected]>:
… @mweststrate <https://github.com/mweststrate> At least it should be in
the list of breaking changes like a note about React support.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#698?email_source=notifications&email_token=AAN4NBEI7QEGABW3VYZTG7DP27NGPA5CNFSM4HXEX6T2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODX4ED7I#issuecomment-502809085>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAN4NBGH25M5FXLOF4K25STP27NGPANCNFSM4HXEX6TQ>
.
|
Fix released as 6.0.4 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or questions. |
Thanks for the update and maintaining the project.
In project(use inject and observer, Provider), I used this library.
When update 6.0.3 from 6.0.2, errors occured in IE11.
version
・node:10.15.3
・react:16.8.6
・mobx:4.3.1
・mobx-react:6.0.3
https://github.com/mobxjs/mobx-react/blob/master/src/utils/utils.js#L71
My guess is the issue is in the above link.
I try to replace Array.prototype.indexOf method from Array.prototype.includes method in my environment.
As a result, no errors occured.
Is this a bug or I'm I missing something?
Thanks in advance.
The text was updated successfully, but these errors were encountered: