-
Notifications
You must be signed in to change notification settings - Fork 29
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
Fatal error: Unexpectedly found nil while unwrapping an Optional value #83
Comments
I'm getting this same issue, did you manage to find a solution @smhemel ? :) |
@DanielDarrenJones No, I didn't find any solution. But, I implemented a custom date-picker component using component instead of this plugin. Below, I have provided a screenshot. You can try it. |
We've faced the same error in our project recently. In our case we were passing the following data to the DatePicker: let { value: newValue } = await DatePicker.present({
mode, // "time"
date: value || dateSuggestion || undefined, // 24-hour formatted time string
timezone,
format: dateFormat, // "HH:mm"
is24h: true,
ios: {
timezone,
format: dateFormat,
style: 'wheels',
mode,
},
android: {
timezone,
format: dateFormat,
mode,
},
}); Despite the fact we explicitly passed the // client/node_modules/@capacitor-community/date-picker/ios/Plugin/Parse.swift
return formatter.date(from: date)!;
// ^--- here |
Same error. @smhemel any idea ? |
@Kamsou I didn't find any solution. Also, I did R&D to find an alternative date-picker plugin for the capacitor, but I didn't. |
Describe the bug
Date Picker is not showing up.
Getting Fatal error when I call atePicker.present() with valid options on Xcode.
My code:
Error in Xcode:
CapacitorCommunityDatePicker/Parse.swift:20: Fatal error: Unexpectedly found nil while unwrapping an Optional value
The text was updated successfully, but these errors were encountered: