thegamenicorus / react-native-phone-input

Phone input box for React Native
https://www.npmjs.com/package/react-native-phone-input
MIT License
394 stars 447 forks source link

error: bundling failed: Error: EISDIR: illegal operation on a directory, read #62

Closed wzup closed 4 years ago

wzup commented 6 years ago

Your react-native-country-picker-modal breaks whole application

import PhoneInput from 'react-native-phone-input';
import CountryPicker from 'react-native-country-picker-modal';

And you get

error: bundling failed: Error: EISDIR: illegal operation on a directory, read
    at Object.fs.readSync (fs.js:675:18)
    at Object.readSync (/Users/user/app/node_modules/graceful-fs/polyfills.js:138:28)
    at tryReadSync (fs.js:540:20)
    at Object.fs.readFileSync (fs.js:583:19)
    at Module._readSourceCode (/Users/user/app/node_modules/metro/src/node-haste/Module.js:206:29)
    at Module._getCacheProps (/Users/user/app/node_modules/metro/src/node-haste/Module.js:398:29)
    at Module._readFromTransformCache (/Users/user/app/node_modules/metro/src/node-haste/Module.js:359:29)
    at Module.readCached (/Users/user/app/node_modules/metro/src/node-haste/Module.js:346:19)
    at /Users/user/app/node_modules/metro/src/node-haste/Module.js:327:29
    at Generator.next (<anonymous>)
Nagibaba commented 5 years ago

It looks like there is a file not imported correctly. Kill all processes from port 8081, then react-native start –reset-cache. You will see the error on emulator

jaydenwindle commented 4 years ago

I agree with @Nagibaba - it looks like it may be an issue with your local environment, not necessarily an issue with this package.

@wzup I'm going to close this issue for now, but I'm happy to reopen it if you'd like to provide some more information so that we can track down the issue :)