-
-
Notifications
You must be signed in to change notification settings - Fork 350
Can't find variable: Symbol #498
Comments
Fixed in #499 and released as 5.2.2 |
@mweststrate I am sorry, but I think it's not fixed yet. I have tried with the updated release version ("5.2.2"), but I am still getting the same error:
You can check the updated release version's snack here. |
Same issue here with |
Should be fixed in 5.2.3 |
Thank you for fixing! |
MobX 5 doesn't work on RN Android, unless you upgrade your JavaScriptCore
(See
https://github.com/react-community/jsc-android-buildscripts#how-to-use-it-with-my-react-native-app).
The default one is from 2014 (!!) and doesn't support any modern features
and MobX 5 won't be compatible, use 4 instead
Op ma 11 jun. 2018 om 11:22 schreef Daiki Ihara <notifications@github.com>:
… Thank you for fixing!
But same issue here with ***@***.***, ***@***.*** and
***@***.*** on Android emulator.
Turning on Debug JS Remotely fixed the issue for me.
snack here ***@***.***/mobx-react-updated-version>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#498 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABvGhAW08BkbCIwOnhM9f-lQkjY5fwAeks5t7ja7gaJpZM4UgfZd>
.
|
Oh I didn't know The default JavaScriptCore on Android is so old!!! Thanks! |
@mweststrate What you mention is really interesting; didn't know about RN and jsc. |
I have no clue about SDKs or something. I think that question is better
asked at the repo that I linked to
Op vr 15 jun. 2018 om 01:57 schreef Juan <notifications@github.com>:
… @mweststrate <https://github.com/mweststrate> What you mention is really
interesting; didn't know about RN and jsc.
I've tried your solution though, but it mentions that it requires a min
sdk version of 21 for it to work. Is there any workaround to keep min
version 16 while also being able to upgrade to mobx to v5.0+?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#498 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABvGhHAt-VoNyj0AgMH4AW4xTvx0-19mks5t8vhxgaJpZM4UgfZd>
.
|
Just followed the instructions that @mweststrate put together.. worked a treat!
Heads up as others are saying - the change requires setting the minimum android SDK version to 21. Otherwise you're looking at downgrading 👎 |
Version Info:
Followed these steps based on @mweststrate 's response to fix this Source: https://github.com/react-community/jsc-android-buildscripts#how-to-use-it-with-my-react-native-app
android/build.gradle
android/app/build.gradle
|
MOBX COMPATIBILITY WITH react-native@0.56 ==> mobx to 4.3.1 and mobx-react to 5.1.0 . |
@hvaoc Thanks too much : ) you save my life. |
Need to bump minimum Android SDK version to 21 too. Apparently, that error message is caused because older JavascriptCore doesn't support "Symbol". More: mobxjs/mobx-react#498 (comment)
update to @tusharmutreja 's fine post: works a treat. |
It works well on React-Native 0.57. |
Same issue here with react-native@0.57.5 with mobx@5.6.0 and mobx-react@5.3.6. That all works well on React-Native 0.57.5. |
It's my setting: (works for me)
.babelrc
and upgrade JavaScript Core |
Thank shuiRong, |
差评 |
@hvaoc is declaring minSdkVersion 21, in android/app/build.gradle really necessary? |
Needed to update the JavaScript Core to do this: mobxjs/mobx-react#498
"mobx": "4.9.2", |
Locking conversation, too many random comments that don't add anything to the conversation. Please open a new issue if still running into trouble not solved by what has been mentioned before already |
I am trying to integrate mobx/mobx-react into my react-native project. But I was stuck when I tried to import Provider into the main App.js.
I have this error:
Error: "Can't find variable: Symbol Evaluating module://mobx-react.js Evaluating module://App.js Loading module://App.js" in
On further checking I found that the latest version of the mobx/mobx-react was the problem. When I installed the old version, the error was gone.
You can check the latest mobx/mobx-react version snack here, which does not work.
And the old version of mobx/mobx-react version of snack here, which does work.
The text was updated successfully, but these errors were encountered: