javascript - Failed to instantiate module formlyBootstrap -


i've installed angular-formly-templates-bootstrap via bower on project i've been working on. when try inject in angular, receive following error:

uncaught error: [$injector:modulerr] failed instantiate module bandar due to: error: [$injector:modulerr] failed instantiate module formlybootstrap due to: error: [$injector:nomod] module 'formlybootstrap' not available! either misspelled module name or forgot load it. if registering module ensure specify dependencies second argument. http://errors.angularjs.org/1.4.1/$injector/nomod?p0=formlybootstrap     @ http://localhost:3000/bower_components/angular/angular.js:68:12     @ http://localhost:3000/bower_components/angular/angular.js:1949:17     @ ensure (http://localhost:3000/bower_components/angular/angular.js:1873:38)     @ module (http://localhost:3000/bower_components/angular/angular.js:1947:14)     @ http://localhost:3000/bower_components/angular/angular.js:4355:22     @ foreach (http://localhost:3000/bower_components/angular/angular.js:336:20)     @ loadmodules (http://localhost:3000/bower_components/angular/angular.js:4339:5)     @ http://localhost:3000/bower_components/angular/angular.js:4356:40     @ foreach (http://localhost:3000/bower_components/angular/angular.js:336:20)     @ loadmodules (http://localhost:3000/bower_components/angular/angular.js:4339:5) 

the problem is, bower doesn't load angular-formly-templates-bootstrap in browser. there other packages being loaded browser bower. don't know problem formlybootstrap.

are using gulp inject bower dependencies? if so, find in gulp config that

exports.wiredep = {   exclude: [/bootstrap.js$/, /bootstrap-sass-official\/.*\.js/, /bootstrap\.css/],   directory: 'bower_components' }; 

so files ended 'bootstrap.js' not injected. can chage that

exports.wiredep = {   exclude: [/[^-]bootstrap.js$/, /bootstrap-sass-official\/.*\.js/, /bootstrap\.css/],   directory: 'bower_components' }; 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -