凉亭组件不适用于角度流星的生产

时间:2016-09-09 17:19:14

标签: javascript angularjs meteor bower angular-meteor

当我在本地开发时,我的应用程序正常工作,我已经尝试了meteor reset,一切都运行良好。

当我使用mupx或甚至在heroku上传它时,它会给我modules are not available等错误。

enter image description here

这是我的bower.json文件:

{
  "name": "blueSoft",
  "version": "0.0.0",
  "license": "MIT",
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    ".meteor/local/bower",
    "test",
    "tests"
  ],
  "dependencies": {
    "angular-credit-cards": "~2.3.5",
    "angular-chart.js": "~0.8.8",
    "ng-file-upload": "^12.0.4",
    "datatables.net": "^1.10.11",
    "fullcalendar": "^2.6.1",
    "datatables.net-dt": "^1.10.11",
    "angular-google-maps": "^2.3.4",
    "angular-material-data-table": "^0.10.9"
  },
  "overrides": {
    "angular": {
      "main": []
    }
  },
  "resolutions": {
    "angular": "^1.4.0"
  }
}

这是我的lib / app.ng.js文件

angular.module('blueSoftApp', [
  'angular-meteor',
  'ui.router',
  'ngMaterial',
  'md.data.table',
  'ui.calendar',
  'ngMessages',
  'countTo',
  'chart.js',
  'angularUtils.directives.dirPagination',
  'credit-cards',
  'ngFileUpload',
  'ngMaterialDatePicker',
  'uiGmapgoogle-maps'
])

onReady = function() {
  angular.bootstrap(document, ['blueSoftApp']);
};

if(Meteor.isCordova) {
  angular.element(document).on('deviceready', onReady);
} else {
  angular.element(document).ready(onReady);
}

我似乎无法弄清楚发生了什么:(

1 个答案:

答案 0 :(得分:0)

您是否在heroku映像上运行了一个postinstall作业,该作业将远程运行bower install?

http://xseignard.github.io/2013/02/18/use-bower-with-heroku/