-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
QueryBuilder broken on web - Invalid regular expression: invalid group specifier name #7026
QueryBuilder broken on web - Invalid regular expression: invalid group specifier name #7026
Comments
What version of Javascript does react native provide? That's bizarre that it doesn't provide these features. |
Looking at the react-native issues.. looks like the problem is brought up time and again - but never fixed. We can work around it, but that sure does make things a bit messier.. |
React Native runs on JavascriptCore, which still does not support lookbehinds |
Is there any older version that works for react native or this has been always the case? |
@hhunaid See the issue description, this was introduced only in 0.2.29 |
@Vluf is correct, we rolled our project back to |
the root cause is node.js version. I meet the same cause. it is because i forget to change the node version back. this case will occur when I use oneToMany and node version is 8.3.0. i change node.js back to 10.19.0 is ok. |
@Cendeal Nodejs is a different engine than the one this issue is for, but upgrading Node will also add support for lookbehinds. |
In order to overcome (even if temporarily) the lookbehinds issue (and the limitations of JavascriptCore), i'm using https://github.com/Kudo/react-native-v8 I can confirm it's working on my installation: react-native@0.63.3 Hope it can help someone else... :) |
@sandro-salles I am having this exact issue and tried to switch to react-native-v8 as suggested, but when the app launches on the emulator it stope responding immediately. Perhaps you could share in more detail how you resolved this |
Same problem here on 0.2.29 |
Have same problem when using Cordova on iOS, i.e., uses Safari's web kit WkWebView, same as React Native. |
Using it on Ionic Capacitor with version 0.2.29 causes this issue for me, reverting back to 0.2.28 solves it. Seems to be something with relationships |
Have same problem on ionic iOS with version 0.2.29. |
Same issue.... Have it on iOS and Android |
This issue was released now since a month and effects most Android/iOS and all Safari usages. It feels this should be critical enough to revert the causing PR and release a 0.2.30 timely? |
Any update on a fixed release guys? thanks so much.... |
Same issue... I don't see any action on this issue recently? |
@Vluf i suggest to update the title and labels to reflect that this affects/breaks all web-based platforms and drivers. @imnotjames @pleerock did this issue already came to your attention? i agree with @timroes and others that this issue merits a revert of #4760 |
I think #4760 made more changes than just adding the lookahead/behind, and there have also been some further improvements made to the function since then. Someone should look at reimplementing the current code without using lookbehinds and submit a pull requests that allows either syntax to be used. Hopefully that can then be merged quicker than a revert since it won't affect non-ionic/browser users. |
@chriswep Updated title & description to reflect this, can't update the labels though. |
Another duplicate: |
Trying to drop to a lower version so I can use this library but I get this error for 0.2.28 and 0.2.25:
Anybody know if there is a work around for this? |
@sdserage Im using version 0.2.27 on react native and its working |
Which react-native version are you using? |
I was able to fix this downgrading to 0.25.5 and removing all URL imports and calls from BrowserUtils inside typeorm module |
I'm using 0.63.4 |
FYI the changes have been reverted and a PR has been made: #7269 |
Lookbehind isn't supported in Safari/JavaScriptCore environments. Closes: #7026
Any ideas on when this will be released? |
Hi @pleerock , could you give us an estimate when the 0.2.31 version will be released? |
For whomever gets here looking for answers, until the release is published, you can build the package locally and use your local build as dependency in your project. These are the steps I followed:
In your project
This worked for me. Comment if you find any trouble. |
Issue Description
The QueryBuilder is broken in the new 0.2.29 release due to this change: #4760
Regex lookbehinds are not supported in on a lot of web environments, a fallback should be implemented.
This affects any driver that uses JavascriptCore (Safari, React Native, ...)
Expected Behavior
I'd expect QueryBuilder to work
Actual Behavior
QueryBuilder crashes with
Invalid regular expression: invalid group specifier name
Steps to Reproduce
I would add an reproducible example, however, I feel the issue is clear enough without?
My Environment
Additional Context
Relevant:
Relevant Database Driver(s)
aurora-data-api
aurora-data-api-pg
better-sqlite3
cockroachdb
cordova
expo
mongodb
mysql
nativescript
oracle
postgres
react-native
sap
sqlite
sqlite-abstract
sqljs
sqlserver
Are you willing to resolve this issue by submitting a Pull Request?
The text was updated successfully, but these errors were encountered: