3

我正在使用 yeoman generator-gulp-angular 来搭建我的应用程序。我用 bower 安装了 ng-18next,并且包及其依赖项都正确安装在 bower_components 目录中。但是,当我运行 gulp serve 并查看源代码时,组件没有被注入到页面中,所以我得到了一个模块实例化错误。如果我将 deps 硬编码到页面中,则没有错误。我还尝试了 bower install --save 并将 deps 正确插入到 bower.json 文件中。有任何想法吗?

谢谢。

4

1 回答 1

0

I had hard-coded script references in index.html. Even though they were commented, this caused them not to be injected with wiredep.

于 2015-03-03T20:05:54.670 回答