allcount / allcountjs

Rapid application development framework for Node.js
http://allcountjs.com
MIT License
402 stars 83 forks source link

Error on creating date field #127

Open vovka-s opened 8 years ago

vovka-s commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

Bloemerang commented 8 years ago

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 commented 8 years ago

Looks like this is actually https://github.com/Eonasdan/bootstrap-datetimepicker/issues/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 commented 8 years ago

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