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

react-datepicker 0.14.0 and up will not support below React 13

Open mhubenthal opened this issue 11 years ago • 5 comments

The package.json needs to be updated to depend on React 0.13.0 and up for react-datepicker 0.14.0 and up. react-datepicker 0.14.0 and up uses "findDOMNode" which is introduced in React 0.13.0 and up.

mhubenthal avatar Nov 10 '15 14:11 mhubenthal

The package already requires 0.14 or higher. What do we need to change?

martijnrusschen avatar Nov 10 '15 14:11 martijnrusschen

@martijnrusschen sorry, I should have been more specific...we're trying to use an older version of react-datepicker (we haven't made the jump to React 0.14.0 yet). Older versions of react-datepicker specify "react": ">=0.12 <0.14", but I think they should specify "react": ">=0.13 <0.14". It seems that React 0.13.0 replaced getDOMNode with findDOMNode. Thanks!

mhubenthal avatar Nov 10 '15 15:11 mhubenthal

Correct. React 0.14 includes some breaking changes. I think the best solution for now would be checking out on an old commit before the change to React 0.14. (see https://facebook.github.io/react/blog/2015/10/07/react-v0.14.html)

martijnrusschen avatar Nov 10 '15 15:11 martijnrusschen

@martijnrusschen thanks for the help. React-datepicker v0.6.2 is the most recent version that will work with pre 0.13.0 React, FYI.

mhubenthal avatar Nov 10 '15 15:11 mhubenthal

Okay, I'll add that info to the Readme

martijnrusschen avatar Nov 11 '15 13:11 martijnrusschen