【发布时间】:2014-06-23 16:37:18
【问题描述】:
我有一个 Angular.js 项目。我可以使用 grunt serve 并且它运行良好。但是,当我将它构建到 dist 文件夹时,它不会运行并且控制台会抛出错误:
Uncaught Error: [$injector:modulerr] Failed to instantiate module designSystemApp due to:
Error: [$injector:unpr] Unknown provider: a
http://errors.angularjs.org/1.2.6/$injector/unpr?p0=a
at http://0.0.0.0:9000/scripts/vendor.js:3:30474
at ...<omitted>...2)
构建没有错误,文件(Bower 组件)被连接到 vendor.js。但是浏览器出错了。该错误是针对最小化文件的,因此调试该错误有点困难。有人见过这个吗?
我的 grunt 文件在这里:https://gist.github.com/smlombardi/7fa15161b60c2f63f416
我有点失落。谢谢。
【问题讨论】:
标签: javascript node.js angularjs gruntjs