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

Not working at IE11 with latest MobX 6 #3771

Open
Dev-Taehui opened this issue Oct 11, 2023 · 6 comments
Open

Not working at IE11 with latest MobX 6 #3771

Dev-Taehui opened this issue Oct 11, 2023 · 6 comments
Labels

Comments

@Dev-Taehui
Copy link

Dev-Taehui commented Oct 11, 2023

Intended outcome: Working at IE11

Actual outcome: Not working at IE11 and throws exception (@@toPrimitive must return a primitive value.)

How to reproduce the issue: I created very simple and minimal reproducible github project (https://github.com/Dev-Taehui/ie11test).
Clone it, npm install, and npm run local for build and serve to local test.

Versions
MobX 6.10.2
React 17.0.2
React-Scripts 4.0.3
Node.js 18.17.1
IE 11

@mweststrate
Copy link
Member

What is the latest version that does work, to be able to intersect a potential cause? (I don't have IE11 at my disposal here)

@Dev-Taehui
Copy link
Author

Dev-Taehui commented Oct 12, 2023

@mweststrate I tried MobX 6.3.3, MobX 6.0.0. But it doesn't work with same reason.

I tested IE11 with VBS script on Windows 11.
Create Launch IE.vbs file and write this command to it.

CreateObject("InternetExplorer.Application").Visible = true

Then, run it

@mweststrate
Copy link
Member

mweststrate commented Oct 12, 2023 via email

@Dev-Taehui
Copy link
Author

Dev-Taehui commented Oct 12, 2023

@mweststrate According to the example I posted, calling mobx's configure({ useProxies: "never" }) in index.js does not work in IE11. If I remove that code it works on IE11

And, I create Next.js 12 and React 17 project. It has same error when I call configure({ useProxies: "never" }).

@Dev-Taehui
Copy link
Author

Dev-Taehui commented Oct 12, 2023

@mweststrate Does need other polyfills for CRA project? Accroding to thrown error, It seems to be that @@toPrimitive Symbol and decorator was not fully polyfilled.

@mweststrate
Copy link
Member

mweststrate commented Oct 12, 2023

Yeah you will need some Symbol polyfills: https://github.com/zloirock/core-js#ecmascript-symbol.

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

No branches or pull requests

2 participants