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

Invalid regular expression: Quantifier has nothing to repeat Error on Xcode 12.5 #3371

Closed
alanXdev0 opened this issue Sep 9, 2021 · 10 comments · Fixed by #4208
Closed

Invalid regular expression: Quantifier has nothing to repeat Error on Xcode 12.5 #3371

alanXdev0 opened this issue Sep 9, 2021 · 10 comments · Fixed by #4208

Comments

@alanXdev0
Copy link

Description:

Cannot compile on Xcode, this error shows up on main.jsbundle, just downloaded and tried to use.
Invalid regular expression: Quantifier has nothing to repeat

Environment Information:

  • Rocket.Chat App Version: 4.19
  • Device Name: iPhone 12
  • OS Version: 14.7.1

Steps to reproduce:

1.Try to compile using Xcode, no error showing up on terminal

Expected behavior:

Start rocket chat

Actual behavior:

Invalid regular expression: Quantifier has nothing to repeat on main.jsbundle

Additional context:

@stephenkopylov
Copy link

stephenkopylov commented Sep 10, 2021

Same thing here

Works nice with simulator but not with device

@diegolmello
Copy link
Member

Can you send us more info about the error?
What branch?
We're working fine with develop.

@stephenkopylov
Copy link

@diegolmello my branch is single-server

Just try to run debug configuration on device

Looks like it tries to build main.jsbundle seeing that we run it on devce while it has to use metro server

@alanXdev0
Copy link
Author

the same as @stephenkopylov, on single-server branch running on debug, while release works correctly

@stephenkopylov
Copy link

I found a little bit "hacky" solution

Run release configuration with development provision profiles - you'll have "bundled" version of app but it will run

@jacotec
Copy link
Contributor

jacotec commented Sep 17, 2021

It's the same also with XCode 12.4 ... as soon as I want to run it in XCode on a physical device in debug mode I'm getting this error.

@diegolmello
Copy link
Member

It's related to Hermes, apparently facebook/hermes#46
There's a new version of React Native pointing to newer Hermes, so it might have been fixed there (we'll update soon).
We all see that it's a debug issue only, so it should be fine on release.
As workaround, we could either work on simulator only or disable Hermes.
To disable Hermes, you need to:

@agent3bood
Copy link

I was able to fix this issue by using node v15.12.0

@dungnguyennvd
Copy link

It's related to Hermes, apparently facebook/hermes#46 There's a new version of React Native pointing to newer Hermes, so it might have been fixed there (we'll update soon). We all see that it's a debug issue only, so it should be fine on release. As workaround, we could either work on simulator only or disable Hermes. To disable Hermes, you need to:

Thanks you!. Someone fix this issue ?

@tkyser-rodeo
Copy link

Seems inconsistent, maybe it's lack of ios dev experience, but sometimes Xcode builds it no problem others it fusses. When it does complain I just disable Hermes and it works.

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

Successfully merging a pull request may close this issue.

7 participants