Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Haste Module naming collision #29

Closed
kristinadarroch opened this issue Nov 4, 2019 · 6 comments
Closed

Haste Module naming collision #29

kristinadarroch opened this issue Nov 4, 2019 · 6 comments

Comments

@kristinadarroch
Copy link

jest-haste-map: Haste module naming collision:

Duplicate module name: react-native
paths: project-name/node_modules/react-native-user-inactivity/node_modules/react-native/package.json collides with project-namel/node_modules/react-native/package.json

jest-haste-map: Haste module naming collision:
Duplicate module name: react-animated

Paths: project-name/node_modules/react-native-user-inactivity/node_modules/react-native/Libraries/Animated/release/package.json collides with project-name/node_modules/react-native/Libraries/Animated/release/package.json

This warning is caused by hasteImpl returning the same name for different files.
jest-haste-map: Haste module naming collision:
Duplicate module name: Sample

Paths: project-name/node_modules/react-native-user-inactivity/node_modules/react-native/Libraries/Sample/package.json collides with /project-name/FreshTool/node_modules/react-native/Libraries/Sample/package.json

@kristinadarroch
Copy link
Author

try clearing the Watchman and packager caches with watchman watch-del-all && react-native start --reset-cache

@cmcaboy
Copy link

cmcaboy commented Nov 6, 2019

I am getting the error on 1.0.1-beta.1, but it looks like you fixed the issue with the very next commit. Solution was to remove react and react-native from the dependency list.

@mowbell
Copy link

mowbell commented Nov 6, 2019

v1.0.1 is not on npm registry
Last now is: 1.0.1-beta.1

@cmcaboy
Copy link

cmcaboy commented Nov 6, 2019

I am using a forked version of 1.0.1. I can confirm that it works.

@jkomyno
Copy link
Owner

jkomyno commented Nov 6, 2019

Sorry for the troubles @mowbell @cmcaboy @kristinadarroch.
Package version 1.0.1 is now online.
Apparently last week my npm publish command failed and I didn't notice until today.

(For the record, I was on a train using my mobile phone's hotspot WiFi, so the connection was pretty unstable, lol.)

https://www.npmjs.com/package/react-native-user-inactivity

@jkomyno jkomyno closed this as completed Nov 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants