【发布时间】:2016-08-02 09:04:41
【问题描述】:
我使用 Yeoman 作为项目启动器制作了一个 AngularJS Web 应用程序。
启动以下命令:
grunt serve
一切正常。
如果我尝试测试用于生产的 dist 版本,请使用以下命令:
grunt serve:dist
我在浏览器控制台中遇到这样的错误:
vendor.f13d432c.js:1 Uncaught Error: [$injector:modulerr] Failed to instantiate module myApp due to:
Error: [$injector:modulerr] Failed to instantiate module uuid4 due to:
Error: [$injector:nomod] Module 'uuid4' 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.
怎么了?
编辑
同样的情况发生在:
grunt build
然后将 dist 文件夹部署到网络服务器中
【问题讨论】:
标签: angularjs build gruntjs yeoman