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

Duplicate module name: CSSProperty when using HTMLtoJSX with react-native #61

Open
bnns opened this issue Apr 15, 2016 · 1 comment
Open

Comments

@bnns
Copy link

bnns commented Apr 15, 2016

Tried using htmltojsx with react native, got the following:

Failed to build DependencyGraph: @providesModule naming collision:
  Duplicate module name: CSSProperty
  Paths: /Users/bnns/projects/mobile-project/node_modules/htmltojsx/node_modules/react/lib/CSSProperty.js collides with /Users/bnns/projects/mobile-project/node_modules/react/lib/CSSProperty.js

This error is caused by a @providesModule declaration with the same name accross two different files.
Error: @providesModule naming collision:
  Duplicate module name: CSSProperty
  Paths: /Users/bnns/projects/mobile-project/node_modules/htmltojsx/node_modules/react/lib/CSSProperty.js collides with /Users/bnns/projects/mobile-project/node_modules/react/lib/CSSProperty.js
@bnns bnns changed the title Duplicate module name: CSSProperty when used with react-native Duplicate module name: CSSProperty when using HTMLtoJSX with react-native Apr 15, 2016
@Daniel15
Copy link
Member

I'm guessing it's due to you having two React versions installed. This repo currently uses React 0.14, and I'm guessing /Users/bnns/projects/mobile-project/node_modules/react contains React 15. Try downgrading it to 0.14 and see if that helps.

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

2 participants