stephy / CalendarPicker

CalendarPicker Component for React Native
802 stars 371 forks source link

Files in NPM package have .js extension, but contain jsx code. #322

Open devon-whil opened 2 years ago

devon-whil commented 2 years ago

My build system is giving me the below error, which I assume is because the file contains JSX code (which is invalid JS). Maybe there are other ways, but I think typically the published package would contain compiled code (perhaps compiled to commonjs format).

ERROR in ../../node_modules/react-native-calendar-picker/CalendarPicker/index.js 444:6
Module parse failed: Unexpected token (444:6)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|   renderMonth(props) {
|     return (
>       <DaysGridView {...props} />
|     );
|   }
FFX3 commented 5 months ago

This issue is still present

peacechen commented 5 months ago

Thanks for noting the issue. This is an older library and needs maintenance. Please submit a PR.