Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

ui.bootstrap.dropdown Failed to instantiate #2960

Closed
m2omou opened this issue Nov 13, 2014 · 6 comments
Closed

ui.bootstrap.dropdown Failed to instantiate #2960

m2omou opened this issue Nov 13, 2014 · 6 comments

Comments

@m2omou
Copy link

m2omou commented Nov 13, 2014

I have creating a custom build, including the following modules:

  • Modal
  • Tabs

Everything works great. And when I want to add the dropdown module. This is my error logs:

Uncaught Error: [$injector:modulerr] Failed to instantiate module fw due to:
Error: [$injector:modulerr] Failed to instantiate module ui.bootstrap due to:
Error: [$injector:modulerr] Failed to instantiate module ui.bootstrap.dropdown due to:
Error: [$injector:nomod] Module 'ui.bootstrap.dropdown' 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.

Do I require specific dependencies for the dropdown module to work ? I thought that will be same as the other modules.

Thank you ! :)

chrisirhc added a commit to chrisirhc/angular-ui-bootstrap that referenced this issue Nov 14, 2014
- use modules in mappings file
- generate concatenated JS
- generate tpl and non-tpl file with banner
- generate zip file for custom builds
- add browser compatibility message
- speed up page by deferring loading of files
- only load the files when needed. Cache them after they're loaded.

Fixes angular-ui#2960
Fixes angular-ui#2847
Fixes angular-ui#2625
Fixes angular-ui#2489
Fixes angular-ui#2357
Fixes angular-ui#2176
chrisirhc added a commit to chrisirhc/angular-ui-bootstrap that referenced this issue Nov 14, 2014
Use approach from Twitter Bootstrap. Most of the code is from their customizer.

- use modules in mappings file
- generate concatenated JS
- generate tpl and non-tpl file with banner
- generate zip file for custom builds
- add browser compatibility message
- speed up page by deferring loading of files
- only load the files when needed. Cache them after they're loaded.

Fixes angular-ui#2960
Fixes angular-ui#2847
Fixes angular-ui#2625
Fixes angular-ui#2489
Fixes angular-ui#2357
Fixes angular-ui#2176
chrisirhc added a commit to chrisirhc/angular-ui-bootstrap that referenced this issue Nov 14, 2014
chrisirhc added a commit to chrisirhc/angular-ui-bootstrap that referenced this issue Nov 14, 2014
Use approach from Twitter Bootstrap. Most of the code is from their customizer.

- use modules in mappings file
- generate concatenated JS
- generate tpl and non-tpl file with banner
- generate zip file for custom builds
- add browser compatibility message
- speed up page by deferring loading of files
- only load the files when needed. Cache them after they're loaded.

Fixes angular-ui#2960
Fixes angular-ui#2847
Fixes angular-ui#2625
Fixes angular-ui#2489
Fixes angular-ui#2357
Fixes angular-ui#2176
Closes angular-ui#2892
@chrisirhc
Copy link
Contributor

How are you creating the custom builds and how are you adding the dropdown module?
If you need to add a module, you need to rebuild the ui-bootstrap file so that it has the additional module.

@chrisirhc chrisirhc reopened this Nov 14, 2014
@m2omou
Copy link
Author

m2omou commented Nov 14, 2014

I went to the http://angular-ui.github.io/bootstrap/ and created a new build with the 3 modules.

I have two files:

  • ui-bootstrap-custom-0.10.0.js
  • ui-bootstrap-custom-tpls-0.10.0

I only include the tpls one and it works. For the dropdown module do I need to add both ?

@chrisirhc
Copy link
Contributor

No, you should only need to add the -tpls file. However, you might want to try this again as I've updated the builds on the website to the latest version.

@m2omou
Copy link
Author

m2omou commented Nov 16, 2014

Ok thanks I will try now

@m2omou
Copy link
Author

m2omou commented Nov 16, 2014

Now it's working fine, thank you Chris for the update.

@chrisirhc
Copy link
Contributor

No problem! Closing as the issue has been resolved.

OronNadiv pushed a commit to lanetix/bootstrap that referenced this issue Nov 18, 2014
Use approach from Twitter Bootstrap. Most of the code is from their customizer.

- use modules in mappings file
- generate concatenated JS
- generate tpl and non-tpl file with banner
- generate zip file for custom builds
- add browser compatibility message
- speed up page by deferring loading of files
- only load the files when needed. Cache them after they're loaded.

Fixes angular-ui#2960
Fixes angular-ui#2847
Fixes angular-ui#2625
Fixes angular-ui#2489
Fixes angular-ui#2357
Fixes angular-ui#2176
Closes angular-ui#2892
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants