Angular 部署到弹性豆茎时角度模块损坏
我有一个有棱角的应用程序,它突然在弹性豆茎中断裂。它工作正常,然后通过elastic beanstalk部署时,突然抛出以下错误:Angular 部署到弹性豆茎时角度模块损坏,angular,amazon-web-services,amazon-elastic-beanstalk,Angular,Amazon Web Services,Amazon Elastic Beanstalk,我有一个有棱角的应用程序,它突然在弹性豆茎中断裂。它工作正常,然后通过elastic beanstalk部署时,突然抛出以下错误: Error: [$injector:nomod] Module 'BookModule' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependenc
Error: [$injector:nomod] Module 'BookModule' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
我对BookModule应用程序的定义如下:
var BookModule = angular.module('BookModule', ['ui.select',
'ngSanitize',
'blockUI',
'ngAnimate',
'ui.bootstrap',
'restangular',
'ui.grid',
'ui.grid.resizeColumns',
'ui.grid.moveColumns',
'angularLazyImg',
'angularSpinner',
'bootstrapLightbox',
'angularjs-dropdown-multiselect',
'datatables',
'datatables.select',
'datatables.bootstrap'
]);
我的蝴蝶结看起来像这样
# asset 'bootstrap'
asset 'papaparse'
asset 'angular-ui-grid'
asset 'underscore'
asset 'restangular'
asset 'angular', '1.5.8'
asset 'leaflet-draw'
asset 'leaflet.fullscreen'
asset 'angular-bootstrap'
asset 'angular-ui-select'
asset 'angular-sanitize', '1.5.8'
asset 'angular-spinner'
asset 'angular-block-ui'
asset 'angular-bootstrap-lightbox'
asset 'angular-animate', '1.5.8'
asset 'datatables.net', '1.10.13'
asset 'datatables.net-select', '1.2.2'
asset 'angular-datatables', '0.5.6'
resolution "angular", "1.5.8"
此错误出现在所有部署中,仅在生产环境中(在ebs上),甚至在以前未出现此错误的应用程序的旧版本中也会出现。这让我觉得上面的一个库被更新了,导致了这个问题。我怎样才能知道是哪一个,或者这是否真的是问题所在?事实证明,传单已更新,导致版本不兼容。我查看了EB上的一个工作实例,并运行了这里给出的代码来检查已安装软件包的版本。然后我又回到了一个坏的,并改变了结果。解决方案是将bower中的所有软件版本锁定为工作实例中的版本