ui-select: 期望的表达式,得到 . (观点)

ui-select: expected expression, got . (point)

我安装了最新的 angular-ui-select (v0.12) 和 angular v1.2.27。我的页面不会加载。我得到:

expected expression, got . (a point)

在我的vendor.js中指的是这个上下文:

    !function(){"use strict";var e={TA
    }]);
    /*!
    * ui-select
   * http://github.com/angular-ui/ui-select
   * Version: 0.12.0 - 2015-05-28T07:44:11.364Z
   * License: MIT
   */.ui-select-highlight{
    ^^^ here, at the point.

这是怎么回事?我可以调查什么?

让我们检查 ui-select 的 requi 站点:

我的app.js:

angular.module('abelujo', [
    'ngRoute',
    'ngCookies',
    'ngResource',
    'ui.select',
    'ngSanitize',
    'ui.router',
    'ui.bootstrap',

bower.json:

"dependencies": {
    "angularjs": "1.2.27",
    "angular-bootstrap": "0.11.2",
    "angular-cookies": "latest",
    "angular-mocks": "latest",
    "angular-resource": "latest",
    "angular-route": "latest",
    "angular-ui-select": "0.12",
    "angular-sanitize": "latest",
    "angular-ui-router": "latest",
    "bootstrap": "3.3",
    "jquery"   : "~1.9",
    "underscore": "latest",
    "datejs": "latest"
},

这里我不明白:我得到 bower_components/angular/angular.js 版本 1.3.15 和 bower_components/angularjs/angular.js 版本询问,1.2.27。看起来 1.3 是 ui-select.

的依赖项

在我的 gulpfile.js:

var vendorJsFiles = [
  'static/bower_components/angularjs/angular.min.js',
  'static/bower_components/angular-bootstrap/ui-bootstrap.min.js',
  'static/bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js',
  'static/bower_components/angular-resource/angular-resource.min.js',
  'static/bower_components/angular-route/angular-route.min.js',
  'static/bower_components/angular-ui-select/dist/select.min.js',
  'static/bower_components/angular-ui-select/dist/select.min.css',
  'static/bower_components/angular-sanitize/angular-sanitize.min.js',
  'static/bower_components/angular-cookies/angular-cookies.min.js',
    'static/bower_components/angular-ui-router/release/angular-ui-router.min.js',
  'static/bower_components/underscore/underscore-min.js',
    'static/bower_components/datejs/build/production/date.min.js',
];

感谢任何提示!

在你的 gulpfile 中

 var vendorJsFiles = [
  /*other files*/
  'static/bower_components/angular-ui-select/dist/select.min.js',
  'static/bower_components/angular-ui-select/dist/select.min.css', //here is the mistake

您有 css 与 javascript 连接。