react-onclickoutside
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
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.
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.
Seeing the same issue :(
@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?