react-native icon indicating copy to clipboard operation
react-native copied to clipboard

facebook::react::Recoverable: Could not open file/data/user/0/com.xxx.yyy/files/rn/main.jsbundle: No such file or directory

Open andyhaha opened this issue 3 years ago • 12 comments

I meet with the problem of my release app on line. help! the React Native version is 0.60.4

stacktraces as follows:

com.facebook.jni.CppException facebook::react::Recoverable: Could not open file/data/user/0/com.xxx.yyy/files/rn/main.jsbundle: No such file or directory 1 com.facebook.react.bridge.CatalystInstanceImpl.jniLoadScriptFromFile(Native Method)

2 com.facebook.react.bridge.CatalystInstanceImpl.loadScriptFromFile(CatalystInstanceImpl.java:233) 3 com.facebook.react.bridge.JSBundleLoader$2.loadScript(JSBundleLoader.java:47) 4 com.facebook.react.bridge.CatalystInstanceImpl.runJSBundle(CatalystInstanceImpl.java:261) 5 com.facebook.react.k.a(ReactInstanceManager.java:1175) 6 com.facebook.react.k.a(ReactInstanceManager.java:125) 7 com.facebook.react.k$5.run(ReactInstanceManager.java:951) 8 java.lang.Thread.run(Thread.java:929)

andyhaha avatar Aug 25 '20 09:08 andyhaha

:warning: Missing Environment Information
:information_source: Your issue may be missing information about your development environment. You can obtain the missing information by running react-native info in a console.

github-actions[bot] avatar Aug 25 '20 09:08 github-actions[bot]

Hi @andyhaha could you follow the issue template and verify this happens on the latest version?

safaiyeh avatar Aug 25 '20 19:08 safaiyeh

:warning: Using Old Version
:information_source: It looks like you are using an older version of React Native. Please upgrade to the latest version, and verify if the issue persists. If it does not, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the current release.

github-actions[bot] avatar Aug 25 '20 19:08 github-actions[bot]

:warning: Missing Required Fields
:information_source: It looks like your issue may be missing some necessary information. GitHub provides an example template whenever a new issue is created. Could you go back and make sure to fill out the template? You may edit this issue, or close it and open a new one.

github-actions[bot] avatar Aug 25 '20 19:08 github-actions[bot]

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

stale[bot] avatar Dec 25 '20 20:12 stale[bot]

Hi @andyhaha could you follow the issue template and verify this happens on the latest version?

It happens on version 0.60.4

andyhaha avatar Jan 14 '21 02:01 andyhaha

Hi @andyhaha could you follow the issue template and verify this happens on the latest version?

It happens on version 0.60.4, and it is a release js bundle.

andyhaha avatar Jan 14 '21 02:01 andyhaha

Is there a solution?

andyhaha avatar Apr 23 '21 01:04 andyhaha

any update?

piccinnigius avatar Apr 26 '21 10:04 piccinnigius

still no answer for my problem?

andyhaha avatar May 19 '21 02:05 andyhaha

no answer, no work, and go home

cmdparkour avatar Aug 04 '22 10:08 cmdparkour

I have also the same issue. I'm Using react-native 0.67.2

desunbera avatar Aug 26 '22 13:08 desunbera

I have also the same issue . I'm Using react-native 0.67.3

facebook::react::Recoverable: Could not open file/data/user/0/com.yaya.zone/files/rn-resource/RNBundle/index.android.bundle: No such file or directory

luozhiran avatar Sep 22 '22 12:09 luozhiran

AHA, I have the same problem

BM-laoli avatar Sep 27 '22 13:09 BM-laoli

Ha, guys, I found a way to deal with this @safaiyeh @andyhaha React Native found in the C + + code, they are required to full amount of name, I suggest React Native to change the documentation!

     ((CatalystInstanceImpl)instance).loadScriptFromFile(filePath$Name,filePath$Name ,false);
     ((CatalystInstanceImpl)instance).loadSplitBundleFromFile( filePath$Name, filePath$Name);
     

my filePath$Name like this => ( /storage/emulated/0/Android/data/com.example.myapprnn/files/Bundle/staging/index.android.bundle ) It comes from my File system in android

The following is my warehouse, you may refer to

https://github.com/BM-laoli/Android-IOS-ReactNative

BM-laoli avatar Sep 27 '22 13:09 BM-laoli