Cannot read property 'milliseconds' of null
See original GitHub issuehttps://codepen.io/kurdtpage/pen/dEqMXb I am getting data via JSON, which is not shown.
Sometimes (intermittently) FC has problems getting the milliseconds and spits out “Cannot read property ‘milliseconds’ of null”. I have isolated this problem to the following areas: core\main.js:
- function
asRoughMs
, sometimesdur
is null. Fix:if (dur == null) return 1;
- around line 4914,
DateEnv.prototype.add = function (marker, dur) {
the error is at the following line:a[6] += dur.milliseconds;
. My fix is to addif (marker == null) marker = new Date(); // Today
at the start of the function (seems to work?) - the last function,
computeActiveRange
sometimesdateProfile.minTime
is null so getting the property.milliseconds
fails
However with these fixes in place, sometimes the calendar will show a blank page
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Cannot read property 'getContext' of null, using canvas
Browser load script first but it doesn't find the canvas. ... that you will loop through this every 500 milliseconds (1/2 a second)...
Read more >Uncaught TypeError: Cannot read property 'setHours' of ...
This error is telling you that the startDate variable is undefined, i.e. it's empty, there's nothing in it.
Read more >Re: [dc.js users] Cannot read property 'getFullYear' of null
I keep getting the message error "Cannot read property 'getFullYear' of null" coming from the d3.js file: Here is the html code (index.html):....
Read more >Changelog - Cypress Documentation
All tests will show the time the test ran in milliseconds during cypress run with the ... Cypress no longer throws the error...
Read more >cannot read property of null (reading 'insertbefore') - You.com
To solve the "Cannot read property 'insertBefore' of null" error, place the JS script tag at the bottom of the body tag, after...
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
Stacktrace/output:
If there is still an issue, please provide a way to reproduce it.