react-native-safe-area-context icon indicating copy to clipboard operation
react-native-safe-area-context copied to clipboard

Unexpected .iml file in npm package

Open Phecda opened this issue 7 years ago • 4 comments

The npm package has an unexpected file android/react-native-safe-area-context.iml which may cause

Could not set process working directory to '/node_modules/react-native-safe-area-context/example/android': could not setcwd() (errno 2: No such file or directory)

in Android Studio.

Solution

add *.iml to .npmignore

Phecda avatar Nov 18 '19 10:11 Phecda

Could you send a PR to fix this?

janicduplessis avatar Nov 19 '19 17:11 janicduplessis

I tried to run npm pack with npm 6.7.0, and no iml included. Perhaps something went wrong during packaging? If so, no need for PR, just pack a new package and make sure these files not inclueded.

Phecda avatar Nov 22 '19 09:11 Phecda

Same issue here with "react-native-safe-area-context": "^0.6.2", need to delete manually the iml file

isabelleaubron avatar Jan 13 '20 16:01 isabelleaubron

@janicduplessis this does need a PR then a new release I think, I just proposed #24 based on how we do it in react-native-device-info, cheers :-)

mikehardy avatar Jan 19 '20 15:01 mikehardy