-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
com.facebook.react.common.JavascriptException: Can't find variable: Intl #19251
Comments
The JavaScript runtime on Android does not have the |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions. |
I'm having a similar issue. Same setup but error is
|
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions. |
I believe this feature request is still valid |
Should be fixed with 0.59 and new Javascript Core |
Upgraded to latest react native, but still getting the error on Intl. Also toLocaleString is not doing formatting. react-native-cli: 2.0.1 new Intl.NumberFormat('en-IN', { style: 'currency', currency: 'INR',useGrouping: true }).format(price)} price.toLocaleString('en-IN', { style: 'currency', currency: 'INR',useGrouping: true }) |
This should definitely be fixed with 0.59 and the latest JSC. |
@cpojer I upgraded to React-Native 0.59.2 but there's still no support for
|
I'm almost certain that 0.59 uses the non-international variant of the JSC, which means that this is still an issue. Using the International variant was discussed shortly here but there's no record of the final decision. Maybe it's worth to consider adding a gradle flag ( |
React Native uses precompiled versions of JSC. This is not in the main repo but rather in a community repo: https://github.com/react-native-community/jsc-android-buildscripts It's probably best to bring it up there. |
@cpojer the community repo has a JSC variant that supports |
This will actually be fully supported in 0.60 through #24276 which adds a build flag to swap out JSC for Android. |
After upgrade to React-Native 0.59.9, issue come at time of launchig the app. Please help me out |
I'm running react native 0.61.5 and still not supports. |
My debug builds are working perfectly fine, however, when trying to use a production build, the apk(Android) crashes with this error:
com.facebook.react.common.JavascriptException: Can't find variable: Intl, stack:
Here's the full stack trace:
Environment
Environment:
OS: macOS High Sierra 10.13.3
Node: 10.0.0
Yarn: Not Found
npm: 6.0.0
Watchman: Not Found
Xcode: Xcode 9.3.1 Build version 9E501
Android Studio: 3.1 AI-173.4720617
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: 0.55.3 => 0.55.3
Steps to Reproduce
Run
./gradlew assembleRelease
, and start the app. The app crashes.Expected Behavior
The should start just like it does in debug mode
Actual Behavior
The app crashes. There is no
Intl
in use in the bundle file generatedThe text was updated successfully, but these errors were encountered: