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

Example app fails with error that it cannot find worker.jsbundle #7

Open
mmmurf opened this issue Apr 7, 2017 · 2 comments
Open

Example app fails with error that it cannot find worker.jsbundle #7

mmmurf opened this issue Apr 7, 2017 · 2 comments

Comments

@mmmurf
Copy link

mmmurf commented Apr 7, 2017

CpResource worker.jsbundle /Users/mmmurf/Library/Developer/Xcode/DerivedData/rnapp-ccdxqyixutejvsgkritolwuwskbd/Build/Products/Debug-iphoneos/rnapp.app/worker.jsbundle
cd /Users/mmmurf/projects/react-native-workers/example/ios
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/mmmurf/projects/react-native-workers/example/ios/worker.jsbundle /Users/mmmurf/Library/Developer/Xcode/DerivedData/rnapp-ccdxqyixutejvsgkritolwuwskbd/Build/Products/Debug-iphoneos/rnapp.app

error: /Users/mmmurf/projects/react-native-workers/example/ios/worker.jsbundle: No such file or directory

Steps to reproduce:

git clone latest:

cd react-native-workers/example

npm install

build/run on device.

other info:

15:17 $ node -v
v6.10.1
✔ ~/projects/react-native-workers/example [master|✚ 1…1]
15:24 $ npm -v
3.10.10

@guns2410
Copy link
Contributor

guns2410 commented May 3, 2017

I think you need to bundle the app for first time use. I felt into the same problem but resolved with running node node_modules/react-native/local-cli/cli.js bundle --dev false --assets-dest ./ios --entry-file index.worker.js --platform ios --bundle-output ./ios/worker.jsbundle --sourcemap-output ./sourcemap/ios.worker.map

@chrisdukey
Copy link

For anyone using Android, this is what did it for me: node node_modules/react-native/local-cli/cli.js bundle --dev false --assets-dest ./android --entry-file index.worker.js --platform android --bundle-output ./android/app/src/main/assets/index.worker.bundle --sourcemap-output ./android/app/src/main/assets/index.worker.map

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

3 participants