CalendarPicker icon indicating copy to clipboard operation
CalendarPicker copied to clipboard

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

Open devon-whil opened this issue 2 years ago • 2 comments

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} />
|     );
|   }

devon-whil avatar May 27 '22 19:05 devon-whil

This issue is still present

FFX3 avatar Apr 10 '24 22:04 FFX3

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

peacechen avatar Apr 11 '24 03:04 peacechen