datetimepicker icon indicating copy to clipboard operation
datetimepicker copied to clipboard

Error: dateHelper is null

Open mrezzonico opened this issue 5 years ago • 5 comments

Hi all,

with the following configuration:

  • PC + Firefox (68.0.2)
  • datetimepicker version 2.5.20

I receive the following error: dateHelper is null

With "Interner Explorer" all is ok.

Thanks for your help Miche

mrezzonico avatar Aug 27 '19 08:08 mrezzonico

Same problem with Safari 13.0.2 (14608.2.40.1.3) on Mac OS.

varna9000 avatar Oct 22 '19 19:10 varna9000

Same with Firefox 72 on Ubuntu 18.04 and 2.5.20 (master was also tested). JQuery 3.4.1 is used. datetimepicker is not functional because if that. Could you please look into the issue? Thanks! :)

dbupwork avatar Feb 21 '20 13:02 dbupwork

I've been testing a few things out, and I think I replicated the same errors as you guys.

On Firefox 78.0.2 on Ubuntu with both 2.5.20 and master, with both JQuery 3.4.1 and JQuery 3.5.0 (which is the version listed in package-lock.json), I get the exact same error message. Chrome too: Chrome 83.0.4103.106 throws TypeError: Cannot read property 'formatDate' of null when attempting to read dateHelper.formatDate.

I got these errors through a direct drop of the Javascript into the web page. I get no errors when I also include php-date-formatter prior to this project's Javascript.

Presumably php-date-formatter sets dateHelper.

NotCompsky avatar Jul 17 '20 10:07 NotCompsky

Same here. It's not at all obvious from the documentation but try including 'jquery.datetimepicker.full.js' in your script instead of 'jquery.datetimepicker.js'. It looks like it's working with that 'full.js' script and I didn't have to include a '<script src="php-date-formatter' tag. I don't know much about these kind of npm packages and I don't use transpilers or webpack or any of that stuff (yet). So I find the documentation on stuff like this to be a bit unfriendly to those of use who don't use those things.

khanks avatar Jan 06 '22 23:01 khanks

+1

JacquesLeRoux avatar Jan 19 '22 10:01 JacquesLeRoux