react-magic icon indicating copy to clipboard operation
react-magic copied to clipboard

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

Open bnns opened this issue 9 years ago • 1 comments

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 avatar Apr 15 '16 18:04 bnns

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.

Daniel15 avatar Apr 17 '16 04:04 Daniel15