-
Notifications
You must be signed in to change notification settings - Fork 586
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
[React-Native]: Require FS (bindings problem) #4517
Comments
@IronTony can you share your current Metro and Babel configurations? |
@kraenhansen here it is:
BABEL CONFIG
|
What happens if you add |
I have added like this:
but the result is same error 😢 |
Have you tried running the |
Yes always. To be sure I have delete |
Okay - I just reproduced this locally and found a fix. Add a resolver: {
...defaultResolver,
sourceExts: [...defaultResolver.sourceExts, 'cjs'],
resolverMainFields: ['react-native', ...defaultResolver.resolverMainFields],
}, I have no idea why the |
What's happening here is that the Metro default of this property is I think that's pretty unfortunate and I'd love to get that updated. |
And YES! Thank you so much for the patient and for the help. Super appreciated |
Likewise - I'm really happy you're trying this out. |
I've created facebook/metro#808 in an attempt to rectify this. |
As mentioned in this comment, a simpler solution is to allow the React Native CLI to set their defaults by leaving out the spread of resolver: {
sourceExts: [...defaultResolver.sourceExts, 'cjs'],
}, |
Nice, thank you again. |
How frequently does the bug occur?
All the time
Description
Hello,
after the fix for the
submit-analytics
(here is the issue and the thread), I have another problem during app launching.As you can see in the screenshot below, I installed
realm@hermes
branch (10.20.0-beta.5
), but unfortunately I have this problem now (both on iOS and Android, RN version 0.67.4):Any hint? Thank you as usual
Stacktrace & log output
No response
Can you reproduce the bug?
Yes, always
Reproduction Steps
After the successful compilation with Xcode/Android Studio/Terminal, during the server start compilation
Version
10.20.0-beta.5
What SDK flavour are you using?
Local Database only
Are you using encryption?
No, not using encryption
Platform OS and version(s)
Both iOS and Android
Build environment
No response
Cocoapods version
No response
The text was updated successfully, but these errors were encountered: