错误空白页面与gulp dist:服务

时间:2017-10-30 03:05:11

标签: angularjs npm gulp

vendor-bed50f88.js:31 Uncaught Error: 
[$injector:modulerr] Failed to instantiate module angularMaterialAdmin due to:
Error: [$injector:nomod] Module 'angularMaterialAdmin' 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.
http://errors.angularjs.org/1.6.4/$injector/nomod?p0=angularMaterialAdmin
http://errors.angularjs.org/1.6.4/$injector/modulerr?

1 个答案:

答案 0 :(得分:1)

您是否在试图使用它的模块中包含“angularMaterialAdmin”?

比如......

angular.module('myMainModule', ['angularMaterialAdmin']);

如果此模块位于单独的文件中,是否通过脚本元素在主html页面中包含对此文件的引用?