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

react-native bundle --minify throws an error on new projects

Open slooker opened this issue 11 years ago • 3 comments

I've created a new project like so:

react-native init TestProject

Once the project is created, I try to bundle it like so:

react-native bundle --minify

This throws this error:

10ddb1e9b7c1:TestProject slooker$ react-native bundle --minify Building package...

/Users/slooker/Downloads/TestProject/node_modules/react-native/node_modules/bluebird/js/main/promise.js:626 throw e; ^ Error: EMFILE, open '/Users/slooker/Downloads/TestProject/node_modules/react-native/node_modules/react-tools/src/browser/ui/dom/ViewportMetrics.js'

slooker avatar May 03 '15 16:05 slooker

@slooker - It seems like in #1096 this was fixed by installing node 0.12.2, could you try that and let me know if it works?

brentvatne avatar May 03 '15 22:05 brentvatne

Woops. You are correct. That fixes the problem. Sorry for not checking the old issues first.

slooker avatar May 03 '15 23:05 slooker

Sure :smile: glad it was resolved

brentvatne avatar May 04 '15 00:05 brentvatne