question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: Cannot read property 'length' of undefined at divyColumns - Ion-datetime

See original GitHub issue

Bug 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
pauloholivercommented, Jun 8, 2020

Same problem here

0reactions
ionitron-bot[bot]commented, Jul 19, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found