Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on creating date field #127

Open
vovka-s opened this issue Jun 14, 2016 · 5 comments
Open

Error on creating date field #127

vovka-s opened this issue Jun 14, 2016 · 5 comments
Labels

Comments

@vovka-s
Copy link

vovka-s commented Jun 14, 2016

I tried to create date field and got such a stack trace:

Error: input.size is not a function
dateTimePicker@http://localhost:9080/assets/lib/js/eonasdan-bootstrap-datetimepicker/bootstrap-datetimepicker.js:2305:17
$.fn.datetimepicker/<@http://localhost:9080/assets/lib/js/eonasdan-bootstrap-datetimepicker/bootstrap-datetimepicker.js:2364:46
.each@http://localhost:9080/assets/lib/js/jquery/jquery.js:359:10
jQuery.prototype.each@http://localhost:9080/assets/lib/js/jquery/jquery.js:152:10
$.fn.datetimepicker@http://localhost:9080/assets/lib/js/eonasdan-bootstrap-datetimepicker/bootstrap-datetimepicker.js:2359:16
.date<@http://localhost:9080/assets/js/allcount.js:153:17
this.$get</service.fieldEditor@http://localhost:9080/assets/lib/js/allcountjs-angular-base/allcount-base.js:538:20
renderField/controller.$render/<@http://localhost:9080/assets/lib/js/allcountjs-angular-base/allcount-base.js:616:49
publicLinkFn@http://localhost:9080/assets/lib/js/angular/angular.js:6940:29
createBoundTranscludeFn/boundTranscludeFn@http://localhost:9080/assets/lib/js/angular/angular.js:7080:16
controllersBoundTransclude@http://localhost:9080/assets/lib/js/angular/angular.js:7733:18
renderField/controller.$render@http://localhost:9080/assets/lib/js/allcountjs-angular-base/allcount-base.js:615:29
renderField@http://localhost:9080/assets/lib/js/allcountjs-angular-base/allcount-base.js:625:21
fieldDirective/</<.link/<@http://localhost:9080/assets/lib/js/allcountjs-angular-base/allcount-base.js:632:21
$RootScopeProvider/this.$get</Scope.prototype.$digest@http://localhost:9080/assets/lib/js/angular/angular.js:14195:23
$RootScopeProvider/this.$get</Scope.prototype.$apply@http://localhost:9080/assets/lib/js/angular/angular.js:14457:13
done@http://localhost:9080/assets/lib/js/angular/angular.js:9614:36
completeRequest@http://localhost:9080/assets/lib/js/angular/angular.js:9804:7
requestLoaded@http://localhost:9080/assets/lib/js/angular/angular.js:9745:9

Datepicker does not appear

@udomsak
Copy link

udomsak commented Jun 19, 2016

Me too.

Allcountjs version

1.0.4

Package.json

{
  "name": "test-app",
  "version": "1.0.0",
  "author": {},
  "dependencies": {
    "allcountjs": "^1.14.5"
  },
  "scripts": {
    "start": "./node_modules/.bin/allcountjs --app app-config"
  },
  "allcountjsTemplate": "twenty-two-lines"
}

@MaxSor MaxSor added the bug label Jun 25, 2016
@MaxSor
Copy link
Contributor

MaxSor commented Jun 25, 2016

And me.
node v6.2.2, allcount v1.14.5

@Bloemerang
Copy link

Me also on 1.0.4. Took a quick look and I noticed that changing that input.size() call to input.length got me past the error (to another of the same kind). Also noticed that https://api.jquery.com/size/ says size() is deprecated. Any chance the version of Bootstrap packaged with allcountjs is being matched with an incompatible jQuery version?

@Bloemerang
Copy link

Looks like this is actually Eonasdan/tempus-dominus#1657. The issue is that bootstrap-datepicker is not compatible with jQuery 3, but does not put an upper bound on its jQuery dependency. My bower-fu is not strong, but if there is a way allcountjs could apply an upper bound on a dependency's (bootstrap-datepicker) dependency (jQuery), then I suspect this issue goes away. That'd be a temporary workaround of course.

@planet37533
Copy link

Me too. I thinks allcountjs is not work...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants