Fatal error: Unexpectedly found nil while unwrapping an Optional value
smhemel opened this issue · comments
Describe the bug
Date Picker is not showing up.
Getting Fatal error when I call atePicker.present() with valid options on Xcode.
My code:
DatePicker.present({
mode: 'date',
date: new Date().toISOString(),
max: this.getMaxDate(from),
theme: 'light',
})
.then((dateData) => {
console.log(dateData);
})
Error in Xcode:
CapacitorCommunityDatePicker/Parse.swift:20: Fatal error: Unexpectedly found nil while unwrapping an Optional value
![Screenshot 2023-09-10 at 12 34 37 AM](https://private-user-images.githubusercontent.com/18726904/266797437-df6cd3ed-c549-48cc-9270-3d460a533bf6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDQ1NjE0MjcsIm5iZiI6MTcwNDU2MTEyNywicGF0aCI6Ii8xODcyNjkwNC8yNjY3OTc0MzctZGY2Y2QzZWQtYzU0OS00OGNjLTkyNzAtM2Q0NjBhNTMzYmY2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAxMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMTA2VDE3MTIwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFmNzcwNTc2Zjk0ODc4YTE5MDdlNmRmYzE2Y2ExNzY5Mjk3ZWI3ZGNkY2E2NTM3YWYxZThjZGZlYzc0MzE4MWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.GCsZjXuf7vRlwLUuVL5Ebu0h1P2Qnj8uYZfQZHiQaKw)
I'm getting this same issue, did you manage to find a solution @smhemel ? :)
No, I didn't get any solution regarding this. That's why I have used another package instead of this. @DanielDarrenJones