Fork me on GitHub
#cljsjs
<
2018-04-03
>
timo12:04:29

Hi there, I just wanted to update react-datepicker and tried to do it like in https://github.com/cljsjs/packages/blob/master/react-datepicker/resources/cljsjs/react-datepicker/common/react-datepicker.ext.js Thing is, that it does not find any DatePicker namespace. I used dependencies like that:






on https://tomjkidd.github.io/javascript-externs-generator/ like in the ext-file. My suspicion is that https://cdnjs.cloudflare.com/ajax/libs/react-datepicker/0.53.0/react-datepicker.js compared to https://cdnjs.cloudflare.com/ajax/libs/react-datepicker/1.4.0/react-datepicker.js seems minified. I have not too much clue about all this js-stuff but it looks quite different and I cannot find exports["DatePicker"] in the 1.4 version. Anyone has an idea what the problem is? Thanks in advance!

juhoteperi14:04:17

@timok Check browser console. React-dom url is wrong and react-datepicker can't be loaded without react-dom.

juhoteperi14:04:18

Though there is some error even with correct react-dom umd url

juhoteperi14:04:58

Okay, React-datepicker requires PropTypes also, this list works:







timo14:04:59

Thanks! 👍

timo14:04:25

I will try to update it and will try to make a PR.