Skip to content
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

Error: bundling failed index.ios.js was not found #402

Closed
IronTony opened this issue Oct 3, 2018 · 7 comments
Closed

Error: bundling failed index.ios.js was not found #402

IronTony opened this issue Oct 3, 2018 · 7 comments

Comments

@IronTony
Copy link

IronTony commented Oct 3, 2018

Hi,

when I compile the react-native app with Xcode, I saw on the terminal window this message:
error: bundling failed: Error: The resource '/Users/yoss/Repo/Project/index.ios.js' was not found.

Indeed is correct, because I have only index.js.
The build with Xcode will run correctly, but I don't know why after the installation of sentry/sentry-cli/sentry-wizard I can see this error on the terminal.

Is there a way to fix this?
Thank you

@jan-auer
Copy link
Member

jan-auer commented Oct 3, 2018

This seems like a problem with project bootstrapping, and not sentry-cli. From what I can see, this error is also raised by react-native and not by sentry-cli. A quick search yields facebook/react-native#16738.

Closing this here, therefore. If you believe this is a misconfiguration by sentry-wizard, please open an issue there.

@jan-auer jan-auer closed this as completed Oct 3, 2018
@IronTony
Copy link
Author

IronTony commented Oct 3, 2018

So I don't understand why the terminal gave me this also:
[03/Oct/2018:09:22:40 +0000] "GET /index.ios.map?platform=ios&dev=true HTTP/1.1" 404 - "-" "sentry-cli/1.36.1"
error: bundling failed: Error: The resource '/Users/yoss/Repo/Project/index.ios.js' was not found.

@jan-auer
Copy link
Member

jan-auer commented Oct 3, 2018

Which command is giving you this output? How is your app set up, and what are you trying to do there? Without more context it is impossible to figure out your actual problem.

@IronTony
Copy link
Author

IronTony commented Oct 3, 2018

I run: react-native start --reset-cache
Then from Xcode I press the button "Build and then run the current scheme", the "Play" button.
When the app is compiled, during the BUNDLE [ios, dev] time, I can see the error above:
[ios, dev] ./index.ios.js ░░░░░░░░░░░░░░░░ 0.0% (0/1), failed.
and after that:
[ios, dev] ./index.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.0% (1180/1180), done.

I am using RN 0.57, react-native-sentry 0.39.0, sentry-cli 1.36.1

@paulmesa
Copy link

@IronTony Were you ever able to resolve this issue? I am experiencing the same problem and haven't found a solution yet.

@lukewlms
Copy link

lukewlms commented Sep 18, 2020

For reference: looks like "a custom build script" is the way to go

  1. make a file named mybuild.sh
  2. add these contents:
    ../node_modules/react-native/packager/react-native-xcode.sh ./path/to/my/entry/file.js
  3. then use sentry-cli react-native xcode mybuild.sh

@lukewlms
Copy link

lukewlms commented Sep 21, 2020

We just turned off the build step and will upload symbols with Fastlane after the app upload. It turns out this build step shouldn't even be active for most iOS projects anyway, because it's incompatible with Bitcode (which is on by default in iOS).

https://docs.sentry.io/platforms/react-native/#ios-specifics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants