-
Notifications
You must be signed in to change notification settings - Fork 816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[react-datepicker] Update to react-datepicker-0.53.0 #1304
Conversation
* Update README * Remove tether and scss_lint because they are no longer dependencies * Update checksum to match 0.53.0 zipfile * Update extern file
That sounds wrong. Could be something on the webpack config... I think good option would be to rewrite the script to download files from https://unpkg.com/react-datepicker@0.53.0/dist/ (official NPM cdn) as using existing files is less error prone and simpler. create-react-class is one package that provides example of that: https://github.com/cljsjs/packages/blob/master/create-react-class/build.boot |
@Deraen I followed your advice, trying out externs generation for the Hacker0x01/react-datepicker@v0.44.0...v0.46.0#diff-f662ae56197d5c888897a02b982f0ad3L17 So, I can link to the |
Have you tried loading the new file on browser? I tested it and it can't be loaded because it depends on react-onclickoutside: https://github.com/Hacker0x01/react-datepicker/blob/master/webpack.config.js#L48, but that package doesn't provide browserified JS. I have no idea how this lib is supposed to be used without webpack now. https://codepen.io/anon/pen/eEPgPp The |
Asked about this upstream: Hacker0x01/react-datepicker#1003 |
react-onclickoutside is listed as an external dependency by react-datepicker, you have to provide it. |
Aha, yes, up-to 6.0 react-onclickoutside provides browser compatible file. Well, seems the code indeed requires use of |
Found the reason for default export, same fix for React-modal: reactjs/react-modal#493 |
Oh, cool. Thanks for following up on this! |
Update:
Extern: I updated the extern with generator.
Worth mentioning that between the existing version (0.41.1) and this, I use the same boot build command, but have to use
DatePicker.default
in client code instead of justDatePicker
.