-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Property FinalizationRegistry doesn't exist. #3643
Comments
Hi, I am unable to reproduce the issue here: https://snack.expo.dev/vEF39Ohnb The mobx-react-lite is 3.4.1 as you mentioned. It looks like your bundler doesn't use a bundled Mobx version. Its locations:
|
PR welcome |
Sorry for the late reply. This issue happened only on my real iphone device. It works well on web. I downgraded to 3.4.0 and it worked well. |
I think the fix would still be correct though, the current implementation
would throw in an environment where it isn't available
…On Sun, 5 Mar 2023, 12:53 Summer Time, ***@***.***> wrote:
Hi, I am unable to reproduce the issue here:
https://snack.expo.dev/vEF39Ohnb
The mobx-react-lite is 3.4.1 as you mentioned. It looks like your bundler
doesn't use a bundled Mobx version. Its locations:
- node_modules/mobx/dist/mobx.cjs.development.js (CommonJS dev)
- node_modules/mobx/dist/mobx.cjs.production.min.js (CommonJS prod)
- node_modules/mobx/dist/mobx.esm.development.js (ES6 dev)
- node_modules/mobx/dist/mobx.esm.production.js (ES6 prod)
Sorry for the late reply. This issue happened only on my real iphone
device. It works well on web. I downgraded to 3.4.0 and it worked well.
—
Reply to this email directly, view it on GitHub
<#3643 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAN4NBCDFKSLB65AGJZHTPLW2R5CFANCNFSM6AAAAAAVPS22TA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I tried https://snack.expo.dev/vEF39Ohnb , and it worked well. My case is on debug mode, and the source code pointed to /node_modules/mobx-react-lite/es/utils/UniversalFinalizationRegistry.js I searched the package, and there are only two files. Quite strange, it only happens in debug mode? |
Sorry, undefined may need to be quoted |
Intended outcome:
Should not occur this error on ios react native
Actual outcome:
How to reproduce the issue: I tried to apply Mobx on an expo created react natice project. I don't think the environment has FinalizationRegistry.
Versions mobx-react-lite 3.4.1
Suggestion Maybe it works if in this way
typeof FinalizationRegistry !== 'undefined'
The text was updated successfully, but these errors were encountered: