Open kellyselden opened 8 years ago
Same here, the 2.4.6 release broke my app I had to force the 2.4.5 version to get it working again
Uncaught ReferenceError: DateFormatter is not defined
+1
I have the same issue, 2.4.6 ver. seems to be broken
+1
+1
+1
+1
+1
Also having this issue, also in 2.4.7
+1 Uncaught ReferenceError: DateFormatter is not defined
Um. +1.
Not so long ago switched dateparser plug-in library
bower install php-date-formatter
But it is already in build/jquery.datetimepicker.full.min.js
so you can use it
@xdan Can you add that package as a dependency to bower.json
?
+1
+1
Added
Still not fixed:
Uncaught ReferenceError: DateFormatter is not defined
yes still having
Uncaught ReferenceError: DateFormatter is not defined
If you're installing via npm, require('jquery-datetimepicker/build/jquery.datetimepicker.full')
worked for me —instead of require('jquery-datetimepicker')
.
See PR #399
yes it works fine when install it using npm... thanks..
+1
+1
use build/jquery.datetimepicker.full.min.js
rather jquery.datetimepicker.min.js
to fix Uncaught ReferenceError: DateFormatter is not defined
error.
If the workable scripts can be accessed in build/
, why not just remove the jquery.datetimepicker.min.js
?
The .min.js file has code from another jquery plugin pasted into the top. Here is the JS file for the other plugin https://github.com/kartik-v/php-date-formatter/blob/master/js/php-date-formatter.js
+1
fixed
Initially I've posted saying it's not fixed for me. Because I did use the file inside the build
folder.
Now the DateFormatter error does not appear, but I don't know how to use Moment.js then. When following the instructions to change according formatter to documentation, the Javascript console shows:
TypeError: $.datetimepicker.setDateFormatter is not a function TypeError: i.dateFormat is not a function
Still not fixed in unminified file in 2.5.4. Minified file works.
I just fought with with today and came up with this solution if anyone still needs it package,json
"browser": {
"jquery": "./node_modules/jquery/dist/jquery.js",
"foundation": "./node_modules/zurb-foundation-5/js/foundation/foundation.js",
"php-date-formatter": "./node_modules/php-date-formatter/js/php-date-formatter.js",
"jquery-datetimepicker": "./node_modules/jquery-datetimepicker/jquery.datetimepicker.js"
},
"browserify-shim": {
"jquery": "$",
"foundation": { "exports": "foundation", "depends": ["jquery:$"]},
"php-date-formatter": "DateFormatter",
"jquery-datetimepicker": { "depends": ["php-date-formatter:DateFormatter"]}
}
Then import and use:
require('jquery-mousewheel')($)
require('jquery-datetimepicker')($)
$('#myEl').datetimepicker()
sample is from a vue-cli generated project using browserify and imported in a .vue file
+1, still not working (not minified version).
Jupp, still coming. (2.5.4)
+1 still coming (2.5.4)
+1, still coming. latest version
I think no need for over-confirming bug. I think the devs are/were out for Christmas and now upcoming New Year event.
+1
Is there some progress around this bug? It still appears in latest version.
Please take a look at the referencing commits, I think we have to be patient.
+3
+9999999999
+1
Good day,
If there are still anyone having this problem, I resolve this by specifying the php-date-formatter in bower to use version 1.3.4. NPM does not carry this version and automatically installs 1.3.5 which does not set the DateFormatter as a function.
in bower.json
set the dependencies
to "php-date-formatter": "kartik-v/php-date-formatter#v1.3.4"
Hope this helps.
not ok 1 PhantomJS 2.1 - Global error: ReferenceError: Can't find variable: DateFormatter
worked in 2.4.5