JedWatson / react-component-gulp-tasks

Common Gulp tasks I use across my React Component projects
MIT License
113 stars 42 forks source link

Problem with devDependencies creating duplicate copies of React #28

Closed neptunian closed 7 years ago

neptunian commented 7 years ago

I might be having the same issue as closed issue #14 .

My component's example relies on react-images. The component itself does not. I have it listed in devDependencies. When i use it in my example app file it causes the js error 'Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's render method, or you have multiple copies of React loaded'