无法实例化formlyBootstrap模块

Mas*_*ous 3 javascript twitter-bootstrap angularjs angular-formly

我已经angular-formly-templates-bootstrap通过凉亭安装了一个我一直在研究的项目.但是当我尝试以角度注入它时,我收到以下错误:

Uncaught Error: [$injector:modulerr] Failed to instantiate module bandar due to:
Error: [$injector:modulerr] Failed to instantiate module formlyBootstrap due to:
Error: [$injector:nomod] Module 'formlyBootstrap' 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.4.1/$injector/nomod?p0=formlyBootstrap
    at http://localhost:3000/bower_components/angular/angular.js:68:12
    at http://localhost:3000/bower_components/angular/angular.js:1949:17
    at ensure (http://localhost:3000/bower_components/angular/angular.js:1873:38)
    at module (http://localhost:3000/bower_components/angular/angular.js:1947:14)
    at http://localhost:3000/bower_components/angular/angular.js:4355:22
    at forEach (http://localhost:3000/bower_components/angular/angular.js:336:20)
    at loadModules (http://localhost:3000/bower_components/angular/angular.js:4339:5)
    at http://localhost:3000/bower_components/angular/angular.js:4356:40
    at forEach (http://localhost:3000/bower_components/angular/angular.js:336:20)
    at loadModules (http://localhost:3000/bower_components/angular/angular.js:4339:5)
Run Code Online (Sandbox Code Playgroud)

问题是,bower不会angular-formly-templates-bootstrap在浏览器中加载.还有一些其他软件包正在通过bower加载到浏览器中.但我不知道问题是什么formlyBootstrap.

And*_*tin 11

你是否正在使用gulp注入凉亭依赖?如果是这样,请在gulp配置中找到类似的东西

exports.wiredep = {
  exclude: [/bootstrap.js$/, /bootstrap-sass-official\/.*\.js/, /bootstrap\.css/],
  directory: 'bower_components'
};
Run Code Online (Sandbox Code Playgroud)

所以所有以'bootstrap.js'结尾的文件都没有注入.你可以用这样的东西来捣乱它

exports.wiredep = {
  exclude: [/[^-]bootstrap.js$/, /bootstrap-sass-official\/.*\.js/, /bootstrap\.css/],
  directory: 'bower_components'
};
Run Code Online (Sandbox Code Playgroud)