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

ambiguous error in react native packager. #11

Open
aalkhulaifi605 opened this issue Nov 1, 2017 · 4 comments
Open

ambiguous error in react native packager. #11

aalkhulaifi605 opened this issue Nov 1, 2017 · 4 comments

Comments

@aalkhulaifi605
Copy link

it seems there is a duplication in react-native components (View , Text ....etc) in your project that conflict with the react-native node modules .

@joncursi
Copy link

Same:

This warning is caused by a @providesModule declaration with the same name across two different files.
jest-haste-map: @providesModule naming collision:
  Duplicate module name: react-native-vector-icons
  Paths: /Users/joncursi/Sites/joncursi/redbird-native-test/node_modules/react-native-animated-linear-gradient/node_modules/react-native/local-cli/core/__fixtures__/files/package.json collides with /Users/joncursi/Sites/joncursi/redbird-native-test/node_modules/react-native/local-cli/core/__fixtures__/files/package.json

This warning is caused by a @providesModule declaration with the same name across two different files.
jest-haste-map: @providesModule naming collision:
  Duplicate module name: react-animated
  Paths: /Users/joncursi/Sites/joncursi/redbird-native-test/node_modules/react-native/Libraries/Animated/release/package.json collides with /Users/joncursi/Sites/joncursi/redbird-native-test/node_modules/react-native-animated-linear-gradient/node_modules/react-native/Libraries/Animated/release/package.json

This warning is caused by a @providesModule declaration with the same name across two different files.
jest-haste-map: @providesModule naming collision:
  Duplicate module name: react-native
  Paths: /Users/joncursi/Sites/joncursi/redbird-native-test/node_modules/react-native/package.json collides with /Users/joncursi/Sites/joncursi/redbird-native-test/node_modules/react-native-animated-linear-gradient/node_modules/react-native/package.json

@heineiuo
Copy link
Owner

heineiuo commented Nov 21, 2017

Maybe remove dependencies of react and react-native will fix this.

"peerDependencies": {
"react-native": ">=0.30",
"react-native-linear-gradient": ">=1.5.0"
},
"homepage": "https://github.com/heineiuo/react-native-animated-linear-gradient#readme",
"dependencies": {
"prop-types": "^15.6.0",
"react": "^16.0.0",
"react-native": "^0.49.5",

@heineiuo
Copy link
Owner

heineiuo commented Nov 21, 2017

try react-native-animated-linear-gradient@^1.1.2 😄 @Nitroman605 @joncursi

@joncursi
Copy link

@heineiuo Yesss, thank you! Fixed!

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

3 participants