Closed myousufq closed 2 years ago
@myousufq I am not able to reproduce it in an Android emulator. Can you provide more context? If possible, please provide a small app which can reproduce the issue.
@myousufq It is your dependency on react-native-reanimated
. We have solved it on v10.20.0-beta.2 so please try to upgrade.
@myousufq It is your dependency on
react-native-reanimated
. We have solved it on v10.20.0-beta.2 so please try to upgrade.
Hi @kneth,
Upgrade to v10.20.0-beta.2 has resolved the issue. I am very thankful for your support.
Can you please help with installing i am getting below error with the command yarn add realm@10.20.0-beta.2 Error:- project\node_modules\realm: Command failed. Exit code: 1 Command: prebuild-install -r napi || cmake-js build Arguments: project\node_modules\realm Output: prebuild-install warn install self signed certificate in certificate chain 'cmake-js' is not recognized as an internal or external command, operable program or batch file.
@myousufq It is your dependency on
react-native-reanimated
. We have solved it on v10.20.0-beta.2 so please try to upgrade.Hi @kneth, Upgrade to v10.20.0-beta.2 has resolved the issue. I am very thankful for your support.
I am getting this error after installing v10.20.0-beta.2 or 5.
` error: Error: Unable to resolve module fs from E:\pp\ShoppingCart\frontend\nx\rs\node_modules\bindings\bindings.js: fs could not be found within the project or in these directories: node_modules
If you are sure the module exists, try these steps:
5 | var fs = require('fs'), | ^ 6 | path = require('path'), 7 | fileURLToPath = require('file-uri-to-path'), 8 | join = path.join, at ModuleResolver.resolveDependency (E:\pp\ShoppingCart\frontend\nx\rs\node_modules\react-native\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:129:15) at DependencyGraph.resolveDependency (E:\pp\ShoppingCart\frontend\nx\rs\node_modules\react-native\node_modules\metro\src\node-haste\DependencyGraph.js:288:43) at Object.resolve (E:\pp\ShoppingCart\frontend\nx\rs\node_modules\react-native\node_modules\metro\src\lib\transformHelpers.js:129:24) at resolve (E:\pp\ShoppingCart\frontend\nx\rs\node_modules\react-native\node_modules\metro\src\DeltaBundler\traverseDependencies.js:396:33) at E:\pp\ShoppingCart\frontend\nx\rs\node_modules\react-native\node_modules\metro\src\DeltaBundler\traverseDependencies.js:412:26 at Array.reduce (
) at resolveDependencies (E:\pp\ShoppingCart\frontend\nx\rs\node_modules\react-native\node_modules\metro\src\DeltaBundler\traverseDependencies.js:411:33) at processModule (E:\pp\ShoppingCart\frontend\nx\rs\node_modules\react-native\node_modules\metro\src\DeltaBundler\traverseDependencies.js:140:31) at async addDependency (E:\pp\ShoppingCart\frontend\nx\rs\node_modules\react-native\node_modules\metro\src\DeltaBundler\traverseDependencies.js:230:18) at async Promise.all (index 1)
`
Please help
I am getting this error after installing v10.20.0-beta.2 or 5.
` error: Error: Unable to resolve module fs from E:\pp\ShoppingCart\frontend\nx\rs\node_modules\bindings\bindings.js: fs could not be found within the project or in these directories: node_modules
If you are sure the module exists, try these steps:
- Clear watchman watches: watchman watch-del-all
- Delete node_modules and run yarn install
- Reset Metro's cache: yarn start --reset-cache
- Remove the cache: rm -rf /tmp/metro- 3 | / 4 |
5 | var fs = require('fs'), | ^ 6 | path = require('path'), 7 | fileURLToPath = require('file-uri-to-path'), 8 | join = path.join, at ModuleResolver.resolveDependency (E:\pp\ShoppingCart\frontend\nx\rs\node_modules\react-native\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:129:15) at DependencyGraph.resolveDependency (E:\pp\ShoppingCart\frontend\nx\rs\node_modules\react-native\node_modules\metro\src\node-haste\DependencyGraph.js:288:43) at Object.resolve (E:\pp\ShoppingCart\frontend\nx\rs\node_modules\react-native\node_modules\metro\src\lib\transformHelpers.js:129:24) at resolve (E:\pp\ShoppingCart\frontend\nx\rs\node_modules\react-native\node_modules\metro\src\DeltaBundler\traverseDependencies.js:396:33) at E:\pp\ShoppingCart\frontend\nx\rs\node_modules\react-native\node_modules\metro\src\DeltaBundler\traverseDependencies.js:412:26 at Array.reduce () at resolveDependencies (E:\pp\ShoppingCart\frontend\nx\rs\node_modules\react-native\node_modules\metro\src\DeltaBundler\traverseDependencies.js:411:33) at processModule (E:\pp\ShoppingCart\frontend\nx\rs\node_modules\react-native\node_modules\metro\src\DeltaBundler\traverseDependencies.js:140:31) at async addDependency (E:\pp\ShoppingCart\frontend\nx\rs\node_modules\react-native\node_modules\metro\src\DeltaBundler\traverseDependencies.js:230:18) at async Promise.all (index 1)
`
Please help
@hispeedimagins can you please let me know how you install the beta version because I am not able to install it
I am getting this error after installing v10.20.0-beta.2 or 5. ` error: Error: Unable to resolve module fs from E:\pp\ShoppingCart\frontend\nx\rs\node_modules\bindings\bindings.js: fs could not be found within the project or in these directories: node_modules If you are sure the module exists, try these steps:
- Clear watchman watches: watchman watch-del-all
- Delete node_modules and run yarn install
- Reset Metro's cache: yarn start --reset-cache
- Remove the cache: rm -rf /tmp/metro- 3 | / 4 |
5 | var fs = require('fs'), | ^ 6 | path = require('path'), 7 | fileURLToPath = require('file-uri-to-path'), 8 | join = path.join, at ModuleResolver.resolveDependency (E:\pp\ShoppingCart\frontend\nx\rs\node_modules\react-native\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:129:15) at DependencyGraph.resolveDependency (E:\pp\ShoppingCart\frontend\nx\rs\node_modules\react-native\node_modules\metro\src\node-haste\DependencyGraph.js:288:43) at Object.resolve (E:\pp\ShoppingCart\frontend\nx\rs\node_modules\react-native\node_modules\metro\src\lib\transformHelpers.js:129:24) at resolve (E:\pp\ShoppingCart\frontend\nx\rs\node_modules\react-native\node_modules\metro\src\DeltaBundler\traverseDependencies.js:396:33) at E:\pp\ShoppingCart\frontend\nx\rs\node_modules\react-native\node_modules\metro\src\DeltaBundler\traverseDependencies.js:412:26 at Array.reduce () at resolveDependencies (E:\pp\ShoppingCart\frontend\nx\rs\node_modules\react-native\node_modules\metro\src\DeltaBundler\traverseDependencies.js:411:33) at processModule (E:\pp\ShoppingCart\frontend\nx\rs\node_modules\react-native\node_modules\metro\src\DeltaBundler\traverseDependencies.js:140:31) at async addDependency (E:\pp\ShoppingCart\frontend\nx\rs\node_modules\react-native\node_modules\metro\src\DeltaBundler\traverseDependencies.js:230:18) at async Promise.all (index 1)
` Please help
@hispeedimagins can you please let me know how you install the beta version because I am not able to install it
You can simply do npm install realm@10.20.0-beta.5
npm install realm@10.20.0-beta.5
Tried same several times with yarn as well as npm but getting below error
npm ERR! code 1
npm ERR! path D:\UzefShaikh\project\realm
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c prebuild-install -r napi || cmake-js build
npm ERR! prebuild-install warn install self signed certificate in certificate chain
npm ERR! 'cmake-js' is not recognized as an internal or external command,
npm ERR! operable program or batch file.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\UzefShaikh\AppData\Local\npm-cache\_logs\2022-08-24T05_50_36_523Z-debug.log
Please help me to solve this
Same issue with Realm JavaScript v10.21.0
@Uzef1997 @HuuNguyen312
If you experience a crash on Android with calling realm.create()
please let us know. If you have other issues, please create a new issue.
@kneth Yes. I am facing a crash with calling realm.create()
realm.write(() => {
const task = Task.generate(description);
realm.create('Task', task);
});
Dependencies version
"react-native-reanimated": "^2.9.1",
"realm": "^10.21.0",
"@realm/react": "^0.3.2",
"react": "17.0.2",
"react-native": "0.68.2",
+1
@kneth Yes. I am facing a crash with calling realm.create()
realm.write(() => { const task = Task.generate(description); realm.create('Task', task); });
Dependencies version
"react-native-reanimated": "^2.9.1", "realm": "^10.21.0", "@realm/react": "^0.3.2", "react": "17.0.2", "react-native": "0.68.2",
I'm using these same versions. Did you find something?
@kneth Yes. I am facing a crash with calling realm.create()
realm.write(() => { const task = Task.generate(description); realm.create('Task', task); });
Dependencies version
"react-native-reanimated": "^2.9.1", "realm": "^10.21.0", "@realm/react": "^0.3.2", "react": "17.0.2", "react-native": "0.68.2",
I'm using these same versions. Did you find something?
@kneth Yes I am facing an issue with the same dependencies as @vitorleonel has described
We had a build issue with v10.21.0 leading to random crashes on Android. Please upgrade to v10.21.1.
I upgraded Dependencies
"realm": "^v11.0.0-rc.2",
"@realm/react": "^0.3.2",
"react": "18.1.0",
"react-native": "0.70.1",
It is resolved Thanks
I am facing a crash with calling realm.create() only in android. Working fine in ios "realm": "^10.21.1", "react": "^18.0.0", "react-native": "^0.69.1", "react-native-reanimated": "^2.10.0",
@myousufq It is your dependency on
react-native-reanimated
. We have solved it on v10.20.0-beta.2 so please try to upgrade. i upgrade "realm": "^10.21.1" still facing same issue "react-native": "^0.69.1", "react": "18.0.0", "react-native-reanimated": "^2.10.0",
@anshif10 @myousufq Please see https://github.com/realm/realm-js/issues/4399#issuecomment-1254591108
Unfortunately #4399 was the only solution to this. Upgrading react native to 0.70.1 and realm to v11.0.0-rc.2 fixed it. I might have a long couple of days ahead of me now, upgrading rn isn't exactly straightforward a lot of the times.
How frequently does the bug occur?
All the time
Description
Hi everyone,
The example below is working fine while in debug is enabled using React Native Debugger but the app is crashing in normal mode for Android only. Can someone assist me resolve this issue, please?
db.write(() => {
});
Can you reproduce the bug?
Yes, always
Reproduction Steps
No response
Version
10.13.0
What SDK flavour are you using?
Local Database only
Are you using encryption?
No, not using encryption
Platform OS and version(s)
Android 10
Build environment
Which debugger for React Native: .. React Native Debugger
Cocoapods version
No response