-
Notifications
You must be signed in to change notification settings - Fork 350
react-native chrono - Invalid RegExp: Quantifier has nothing to repeat, js engine: hermes #483
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
Comments
Hello @sajjad-karimi sorry for my slow reply. I'm not aware of the Hermes engine. Will try to see if we can support that engine. |
We have a similar issue too. Do we have any workaround/suggestions? |
@wanasit the issue is related to this one: facebook/hermes#696 I tried using the The issue specifically is due to the use of named capture groups in the ZH and RU locale files, but I've not found any way to remedy the issue so far. My only remaining idea is to use |
Confirmed that commenting out the RU and ZH parsers from the |
Should be fixed in future versions of Hermes if the "completed" status of this issue is anything to go by: facebook/hermes#696 |
Yes. I have checked out the latest build for the Hermes engine and it compiles the RegExp correctly now. This should make its way to react native app soon. |
I tried commenting out ZH and RU and adding the core-js polyfill and my error turned into:
|
As replied in #527. Please try update to Chrono v2.7.3 I have fixed the issue by switching to lazy-loading/creating RegEx patterns. In the longer term, we can only wait for Hermes Engine to support those patterns. I'm closing this issue. Please comment on #527 or create a new issue for Hermes engine. |
I've used chrono-node in react-native app and when I import chrono-node in app with hermes engine . I get the following error:
SyntaxError: Invalid RegExp: Quantifier has nothing to repeat, js engine: hermes
The text was updated successfully, but these errors were encountered: