bug: Cannot read property 'length' of undefined at divyColumns - Ion-datetime
See original GitHub issueBug Report
Ionic version:
[x] 5.x
Current behavior:
Datepicker doens’t open when pass shortMonthNames. One of functions can’t read text of last colunm
Steps to reproduce:
Download and run in normal procediments the following project: https://github.com/littlefish28/datepicker_bug Try open ion-datetime
Other information:
I guess the component try to run for 13 slots instead of 12. Maybe something related with month numbers that starts with 1 and an array with 0. So when it’s check the number 12 (thirteenth slot), the bug appears. An workaround I’m using is pass a empty string in last slot, but this allows the user select an “empty year” Ionic info:
Ionic:
Ionic CLI : 6.7.0 (C:\Users\User\AppData\Roaming\npm\node_modules\@ionic\cli)
Ionic Framework : @ionic/angular 5.1.1
@angular-devkit/build-angular : 0.901.7
@angular-devkit/schematics : 9.1.7
@angular/cli : 9.1.7
@ionic/angular-toolkit : 2.2.0
Capacitor:
Capacitor CLI : 2.1.2
@capacitor/core : 2.1.2
Utility:
cordova-res : 0.13.1
native-run : 0.3.0
System:
NodeJS : v13.10.1 (C:\Program Files\nodejs\node.exe)
npm : 6.13.7
OS : Windows 10
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
How to fix "Cannot read property 'length' of undefined"
When you are trying to call updateValue, the valueMap still doesn't have a defined value for the corresponding idea.
Read more >Cannot read property 'length' of undefined - Ionic Forum
I'm facing type error. ERROR TypeError: Cannot read property 'length' of undefined at FeedsPage.webpackJsonp.260.FeedsPage.addnewcard (feeds.ts: ...
Read more >Task processing fails with error Cannot read property length
TypeError : Cannot read property 'length' of undefined. It looks like the files all process until the end of the video then fail....
Read more >Advanced Lighting 4.0 | Error: Cannot read property 'length' of ...
When the map load i have the next error: TypeError Cannot read property 'length' of undefined . 4 - I look on console...
Read more >Typeerror: Cannot Read Property 'length' of Undefined
On Career Karma, learn why you're getting that #JavaScript typeerror and how to fix it.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same problem here
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.