datetimepicker
datetimepicker copied to clipboard
Error: dateHelper is null
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
Same problem with Safari 13.0.2 (14608.2.40.1.3) on Mac OS.
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! :)
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
.
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.
+1