Closed carlost closed 4 years ago
Thanks @carlost for reporting this. It looks like calendarPicker.gif
was superceded by the demo GIFs under assets/
, so it should be safe to remove. Please submit a PR and I'll merge straight away.
This has been removed in commit 158ce218e577c82b588a7c5e0a11b8c7f3781c24.
using:
Application uses
react-native-calendar-picker
withreact-native
. It also includess a web front end usingreact-native-web
. Webpack throws the follow error when generating the bundle for the web front end:react-native-web relies on webpack to generate the bundle for the web front end. On a case-insensitive file system webpack uses CaseSensitivePathsPlugin to keep build behavior consistent with case sensitive file systems.
The import causing the error is:
import CalendarPicker from 'react-native-calendar-picker';
The package.json in
react-native-calendar-picker
lists"./CalendarPicker"
as"main"
. Instead of keeping the build behavior consistent, theCaseSensitivePathsPlugin
attempts to load up thecalendarPicker.gif
in the root of thereact-native-calendar-picker
package instead of theCalendarPicker
dir in the package root.I am going to open an issue with
CaseSensitivePathsPlugin
and I understand that this is a bit of an edge case (APFS react-native-web etc.), but I think a small change would resolve this issue when usingreact-native-calendar-picker
.The
calendarPicker.gif
image does not appear to be referenced byreact-native-calendar-picker
. If this is correct, removing this file would resolve this issue. If the file is actually still being used, moving it to theassets
directory would also resolve this issue.If you are ok with (re)moving
calendarPicker.gif
I will be happy to open up a PR for you.