angular-ui / bootstrap

PLEASE READ THE PROJECT STATUS BELOW. Native AngularJS (Angular) directives for Bootstrap. Smaller footprint (20kB gzipped), no 3rd party JS dependencies (jQuery, bootstrap JS) required. Please read the README.md file before submitting an issue!
http://angular-ui.github.io/bootstrap/
MIT License
14.27k stars 6.73k forks source link

Error: b.DATETIME_FORMATS.STANDALONEMONTH is undefined #6349

Closed Mr-Anonymous closed 7 years ago

Mr-Anonymous commented 7 years ago

Bug description:

I keep getting the error Error: b.DATETIME_FORMATS.STANDALONEMONTH is undefined when I use the datepicker. I stripped everything out of my directive and even the bare minimum of the datepicker code like below throws this error when its loaded. Tried it from Mac:

return {
              restrict: 'A',
              replace: true,
              template: '<p>' +
                            '<input type="text" name="dob" class="form-control" placeholder="Date of Birth" uib-datepicker-popup />' +
                        '</p>',
          }

Version of Angular, UIBS, and Bootstrap

Angular: 1.4.8

UIBS: 2.3.0

Bootstrap: 3.3.7

Mr-Anonymous commented 7 years ago

The error only seems to happen with Angular 1.4.x version. The error did not show after updating Angular from 1.4.8 to 1.5.9.

wesleycho commented 7 years ago

The documentation mentions that it is only usable with Angular 1.5 - are you trying to use this feature with Angular 1.4, or is it erroring regardless?

wesleycho commented 7 years ago

Figured out exactly why this failed, will push up fix shortly & cut a release.