繁体   English   中英

凉亭组件无法在流星中生产

[英]Bower components not working on production in angular meteor

当我在本地开发时,我的应用程序正常运行,尝试过meteor reset ,但一切仍然正常。

当我用mupx甚至在heroku中上传它时,出现modules are not available等错误。

在此处输入图片说明

这是我的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);
}

我似乎不知道发生了什么事:(

您是否在heroku映像上运行了将为您远程运行Bower安装的安装后作业?

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM