-
Notifications
You must be signed in to change notification settings - Fork 577
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
No identifiers allowed directly after numeric literal #6194
Comments
Hi @snibo13, from your package.json I can see you're using For using realm and realm/react in your application, please see our docs and guides or example apps. We recommend using realm/react's |
@snibo13, I'll go ahead and close this issue, feel free to reopen should your problem still exist. |
@elle-j is it required to use @realm/react with realm version 12.2.1, because I am only working with realm till now? |
No, version 12.2.1 is not a requirement. But to use v12 and up, in combination with @realm/react, you'd need to use at least @realm/react v0.5.0. To see what enhancements and bugfixes each new version has added you can refer to our Releases, if you decide to use a lower version than the latest. |
@elle-j I am getting this error with 12.2.1 without using @realm/react. How to fix this issue with realm standalone? |
We have noticed that this issue occurs when |
For future reference, the reason this is experienced only on Android might be, that on iOS the app will use the JSC which is provided by the operating system, whereas on Android it ships with a specific version provided by the React Native project. This could relate to a difference in the support for these numeric separators across different versions of JSC. |
How frequently does the bug occur?
Description
Whenever I attempt to use useQuery from '@realm/react'. (VS Code also seems to have trouble finding this module). I can import it without any immediate issues but when I try to useQuery to retrieve values I get "No identifiers allowed directly after numeric literal"
Stacktrace & log output
Can you reproduce the bug?
Reproduction Steps
Install realm/react
import useQuery from '@realm/react'
Create and render a React app with any content that has a constant equal to useQuery()
Minimal reproduction:
My code: here
Version
0.4.1 and 0.4.3
What services are you using?
Are you using encryption?
Platform OS and version(s)
React Native on Android 14, development on Windows 11
Build environment
Which debugger for React Native: ..
Cocoapods version
No response
The text was updated successfully, but these errors were encountered: