cssivision / react-native-qrcode

a minimalist qrcode component for react-native
MIT License
853 stars 303 forks source link

Error: EISDIR: illegal operation on a directory, read #32

Open hejunbinlan opened 7 years ago

hejunbinlan commented 7 years ago

Error: EISDIR: illegal operation on a directory, read at Object.fs.readSync (fs.js:681:18) at Object.readSync (/Users/xxxx/workspace-js/ReactNative/HotCode/node_modules/graceful-fs/polyfills.js:138:28) at tryReadSync (fs.js:542:20) at Object.fs.readFileSync (fs.js:585:19) at Module._readSourceCode (/Users/xxxx/workspace-js/ReactNative/HotCode/node_modules/metro-bundler/build/node-haste/Module.js:205:29) at Module._getCacheProps (/Users/xxxx/workspace-js/ReactNative/HotCode/node_modules/metro-bundler/build/node-haste/Module.js:395:29) at Module._readFromTransformCache (/Users/xxxx/workspace-js/ReactNative/HotCode/node_modules/metro-bundler/build/node-haste/Module.js:345:29) at Module.readCached (/Users/xxxx/workspace-js/ReactNative/HotCode/node_modules/metro-bundler/build/node-haste/Module.js:332:19) at ResolutionRequest.preprocessModule (/Users/xxxx/workspace-js/ReactNative/HotCode/node_modules/metro-bundler/build/node-haste/DependencyGraph/ResolutionRequest.js:380:27) at ResolutionRequest._preprocessPotentialDependencies (/Users/xxxx/workspace-js/ReactNative/HotCode/node_modules/metro-bundler/build/node-haste/DependencyGraph/ResolutionRequest.js:364:27)

DeforeChen commented 7 years ago

I run into the same issue. Maybe the QR component does not match the later RN version? In my project, the RN version is 0.47 or later.

zeroceus commented 7 years ago

I encountered the same issue too, my project's RN version is 0.47


But this problem fixed after I reinstalled npm modules.Try It

fastalks commented 6 years ago

I encountered the same issue too, my project's RN version is 0.51

holasebas commented 6 years ago

same here, RN version 0.52, HELP!!!

elijahmurray commented 6 years ago

I was able to get past the error by running npm install graceful-fs explicitly within my project. Hope it helps!

wkchen66 commented 6 years ago

Try end the project process on the device and restart(react-native run-android)

buddudevelopers commented 3 years ago

This happened when I moved the index.js file from the root of the project and it was resolved once I placed it back

anggihseptiawan commented 3 years ago

it works for me, https://stackoverflow.com/questions/66771543/metro-bundler-error-eisdir-illegal-operation-on-a-directory-read

maxhudson commented 3 years ago

This can happen when running from a non-ejected expo repository