react-responsive-image icon indicating copy to clipboard operation
react-responsive-image copied to clipboard

React should be a devDependency, causes conflicts with other loaded React if used in project.

Open lord0gnome opened this issue 7 years ago • 5 comments

I'm a noob so let me know if I'm full of crap!

lord0gnome avatar Sep 20 '18 18:09 lord0gnome

I haven't run into this issue, can you provide some more context with how you're using it/what error(s) you're getting?

mikefey avatar Sep 21 '18 18:09 mikefey

I'll try to get a "minimum reproduce" thing going today!

lord0gnome avatar Sep 22 '18 09:09 lord0gnome

https://github.com/lord0gnome/test_react_responsive_image readme: Clone repo run npm install run npm start will give you errors about refs, when I look on react doc the likely culprit seems to me to be multiple copies of react, which you can see when you run "npm run ls-react" which uses npm ls react, and finds multiple versions, the one I'm using, and yours. when I run npm ls react

Now that I think about it, it could be because you're using react 15 and not 16? Is that possible?

lord0gnome avatar Sep 22 '18 10:09 lord0gnome

I'm also encountering this issue after updating react version to >= 16.0.0:

+-- @edx/[email protected]
| `-- @edx/[email protected]
|   `-- [email protected] 
+-- UNMET DEPENDENCY [email protected]
`-- [email protected]
  `-- [email protected] 

@mikefey Any update?

Thanks!

waheedahmed avatar Jan 16 '19 12:01 waheedahmed

@lord0gnome @waheedahmed This issue should be fixed in the latest release (v5.0.0), let me know if you still run into trouble though.

mikefey avatar Jan 24 '19 03:01 mikefey