0

I'm using Instabug for crash reports for my React Native project. I need to upload an Android sourcemap so the logs can be useful. I'm using React Native 0.69.1 and did my install via the react native docs.

Instabug says to run this command:

react-native bundle --platform android \ 
 --entry-file index.js \ 
 --dev false \ 
 --bundle-output ./android/index.android.bundle \ 
 --sourcemap-output ./android-sourcemap.json && 
 zip ./android-sourcemap.zip ./android-sourcemap.json

Note, I had to replace react-native with npx. Here's the result:

zsh: command not found: react-native
zsh: command not found: --entry-file
zsh: command not found: --dev
zsh: command not found: --bundle-output
zsh: command not found: --sourcemap-output

I tried some of things mentioned in How to add sourcemap in React Native for Production? but was not able get anything to work.

Any help would be appreciated.

John Goodman
  • 1,058
  • 12
  • 14

0 Answers0