Metro: bundle fails: EISDIR: illegal operation on a directory, open

Created on 17 Jun 2017  路  2Comments  路  Source: facebook/metro

bug

What is the current behavior?

When running:
react-native bundle --platform ios --dev false --entry-file index.ios.js --bundle-output ./ --sourcemap-output ./

I got:
EISDIR: illegal operation on a directory, open './'

I've tried with reset-cache, tried using different directories, tried sudo -- nothing helps.

Please provide your exact metro-bundler configuration and mention your metro-bundler, node, yarn/npm version and operating system.

node v.6.11.0
react-native-cli: 2.0.1
react-native: 0.44.0
npm v.3.10.10
macOS v.10.12


When running Xcode build/run (Release scheme) everything works great.

All 2 comments

It was my inadvertence.. should have specified file with extension in the --bundle-output & --sourcemap-output.

Please close the issue.

Got the same issue thanks for leaving back a comment :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cpojer picture cpojer  路  3Comments

soh335 picture soh335  路  5Comments

torkelrogstad picture torkelrogstad  路  4Comments

skovhus picture skovhus  路  6Comments

MattFoley picture MattFoley  路  5Comments