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

[Android] JS Bundle fails to load with an error. #13

Closed
bozzmob opened this issue Nov 20, 2015 · 4 comments
Closed

[Android] JS Bundle fails to load with an error. #13

bozzmob opened this issue Nov 20, 2015 · 4 comments

Comments

@bozzmob
Copy link

bozzmob commented Nov 20, 2015

Hi,

I ran the following commands-

npm install
react-native run-anroid

The application gets deployed on my device, but, it says the server has to be running so that the app gets the JS Bundle.

I ran-

react-native start

But, it throws up the following error-

root@purvotara:~/ReactJS/native/HackerNews-React-Native# react-native start
 ┌────────────────────────────────────────────────────────────────────────────┐ 
 │  Running packager on port 8081.                                            │ 
 │                                                                            │ 
 │  Keep this packager running while developing on any JS projects. Feel      │ 
 │  free to close this tab and run your own packager instance if you          │ 
 │  prefer.                                                                   │ 
 │                                                                            │ 
 │  https://github.com/facebook/react-native                                  │ 
 │                                                                            │ 
 └────────────────────────────────────────────────────────────────────────────┘ 
Looking for JS files in
   /home/bozzmob/ReactJS/native/HackerNews-React-Native 


React packager ready.

 ERROR  watch /home/bozzmob/ReactJS/native/HackerNews-React-Native ENOSPC
{"code":"ENOSPC","errno":"ENOSPC","syscall":"watch /home/bozzmob/ReactJS/native/HackerNews-React-Native","filename":"/home/bozzmob/ReactJS/native/HackerNews-React-Native"}
Error: watch /home/bozzmob/ReactJS/native/HackerNews-React-Native ENOSPC
    at exports._errnoException (util.js:874:11)
    at FSWatcher.start (fs.js:1239:19)
    at Object.fs.watch (fs.js:1267:11)
    at NodeWatcher.watchdir (/home/bozzmob/ReactJS/native/HackerNews-React-Native/node_modules/react-native/node_modules/sane/src/node_watcher.js:144:20)
    at new NodeWatcher (/home/bozzmob/ReactJS/native/HackerNews-React-Native/node_modules/react-native/node_modules/sane/src/node_watcher.js:45:8)
    at /home/bozzmob/ReactJS/native/HackerNews-React-Native/node_modules/react-native/packager/react-packager/src/FileWatcher/index.js:95:21
    at tryCallOne (/home/bozzmob/ReactJS/native/HackerNews-React-Native/node_modules/react-native/node_modules/promise/lib/core.js:37:12)
    at /home/bozzmob/ReactJS/native/HackerNews-React-Native/node_modules/react-native/node_modules/promise/lib/core.js:103:15
    at flush (/home/bozzmob/ReactJS/native/HackerNews-React-Native/node_modules/react-native/node_modules/promise/node_modules/asap/raw.js:50:29)
    at doNTCallback0 (node.js:417:9)

What am I doing wrong?

@bozzmob bozzmob changed the title JS Bundle fails to load with an error. [Android] JS Bundle fails to load with an error. Nov 20, 2015
@iSimar
Copy link
Owner

iSimar commented Nov 20, 2015

@ivanph

@ivanph
Copy link
Contributor

ivanph commented Nov 20, 2015

This error seems to be coming from the packager, which is only oficially suported on OSX , you might want to check this facebook/react-native/issues/3565 and this https://facebook.github.io/react-native/docs/linux-windows-support.html#content

@bozzmob
Copy link
Author

bozzmob commented Nov 22, 2015

Thanks @ivanph and @iSimar It helped :)

@bozzmob
Copy link
Author

bozzmob commented Nov 22, 2015

Closing this issue. Got resolved.

@bozzmob bozzmob closed this as completed Nov 22, 2015
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