Skip to content
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

mobx 6 does not support ie11 #3766

Closed
MrErHu opened this issue Sep 26, 2023 · 1 comment
Closed

mobx 6 does not support ie11 #3766

MrErHu opened this issue Sep 26, 2023 · 1 comment

Comments

@MrErHu
Copy link

MrErHu commented Sep 26, 2023

Intended outcome:

When I configure it according to the official website of Mobx

{    
    // Babel >= 7.13.0 (https://babeljs.io/docs/en/assumptions)
    "plugins": [["@babel/plugin-proposal-class-properties"]],
    "assumptions": {
        "setPublicClassFields": false
    }
}
import { configure } from "mobx"

configure({ useProxies: "never" }) 

I think it works fine in IE11

Actual outcome:

starting from mobx6.8 version, mobx reports an error in ie11,the error effect is as follows:

image

The problem is very similar to this one

image

res is object type,so throw error. This code was added by babel in mobx

How to reproduce the issue:

When using Mobx 6.8 or later in IE11 the polyfill uses [email protected]

Versions

Mobx 6.8 or later

@mweststrate
Copy link
Member

I don't think the code you are sharing above is coming from Mobx, nor can I read the exception, or reproduce the issue from a screenshot. Given that the linked issue is about Angular, it seems more of an issue with your project setup / babel / core-js, and I'm not sure how this is actionable for us here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants