Internal error after installing react-native-country-picker-modal

Hi when i install change-native-country-picker-modal and add this one import CountryPicker, {getAllCountries} from 'react-native-country-picker-modal';

to my component i get this error in sim. When I remove this line, the error goes away.

{"type":"internalError","message":"react-packager has encountered an internal error, pelase check your terminal error output for more details"}

      

I've been trying to fix it for hours and can't seem to fix the problem. Any ideas why this is happening or how to fix it?

This is what happens when I install this package.

$ npm i react-native-country-picker-modal --save
taddar_mobile_app@0.0.1 /Users/josephkonop/Documents/Projects/taddar_mobile_app
└─┮ react-native-country-picker-modal@0.3.0-rc1
  └── react-native-emoji@1.2.0  (git://github.com/niftylettuce/react-native-emoji.git#70275d5e36cc9933f4d571fae7fa519ab566ca38)

npm WARN react-static-container@1.0.1 requires a peer of react@^0.13.0 || ^0.14.0 || ^15.0.0 but none was installed.

      

Magazines

Error: EISDIR: illegal operation on a directory, read
    at Error (native)
    at Object.fs.readSync (fs.js:725:19)
    at Object.readSync (/Users/my_name/Documents/Projects/taddar_mobile_app/node_modules/graceful-fs/polyfills.js:138:28)
    at tryReadSync (fs.js:480:20)
    at Object.fs.readFileSync (fs.js:528:19)
    at _readSourceCodePromise.resolve (/Users/my_name/Documents/Projects/taddar_mobile_app/node_modules/react-native/packager/src/node-haste/Module.js:191:31)
    at Module._readSourceCode (/Users/my_name/Documents/Projects/taddar_mobile_app/node_modules/react-native/packager/src/node-haste/Module.js:190:37)
    at Module._readDocBlock (/Users/my_name/Documents/Projects/taddar_mobile_app/node_modules/react-native/packager/src/node-haste/Module.js:199:29)
    at Module._getHasteName (/Users/my_name/Documents/Projects/taddar_mobile_app/node_modules/react-native/packager/src/node-haste/Module.js:209:32)
    at _cache.get (/Users/my_name/Documents/Projects/taddar_mobile_app/node_modules/react-native/packager/src/node-haste/Module.js:130:18)

      

+3


source to share


1 answer


Kill the local packaging server and restart it. I had the same problem and the solution was to restart the packaging server. I also installed this via NPM, not sure if it helps.



0


source







All Articles