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

React 16: update the react-dom dependency version to 16 instead of 15.6.2 to work with react 16

Open gauravshah27 opened this issue 8 years ago • 3 comments

ERROR in ./~/react-onclickoutside/~/react-dom/lib/ReactMount.js
Module not found: Error: Can't resolve 'react/lib/React' in '...\react-onclickoutside\node_modules\react-dom\lib'
 @ ./~/react-onclickoutside/~/react-dom/lib/ReactMount.js 15:12-38
 @ ./~/react-onclickoutside/~/react-dom/lib/ReactDOM.js
 @ ./~/react-onclickoutside/~/react-dom/index.js
 @ ./~/react-onclickoutside/es/index.js
 @ ./~/react-datetime/src/DaysView.js
 @ ./~/react-datetime/src/CalendarContainer.js
 @ ./~/react-datetime/DateTime.js

went to the following path

<project>-> node_modules -> react-onclickoutside -> node_modules -> react-dom -> package.json

and found that the version number inside package.json of react-dom was 15.6.2 and as a result does not work well with react 16.

gauravshah27 avatar Oct 30 '17 18:10 gauravshah27

Could u share ur setup? Exact versions of react-datetime, also what got installed as react-onclickoutside and what version of npm are you using.

Andarist avatar Oct 30 '17 19:10 Andarist

Seeing the same issue :(

aligfl avatar Jun 14 '18 22:06 aligfl

@aligfl can you please give some more details? Have you reduced this to where you are 100% certain it's exactly this library and not another component or dependency?

Pomax avatar Jun 15 '18 14:06 Pomax