javascript - Cant find Jquery UI dependencies using Bower, Jquery UI, and RequireJS -
I am using a Jquery UI, Bower, and RequireJS in a project and in need to configure Jquery UI The difficulty is coming. Actually Jquery UI is trying to find its dependencies in the root directory, and where not located, giving me an error
I understand 1.11 as Jquery UI supports AMD and Document notes This works with a directory such as:
├── index.html ├── js │ ├── App.js │ ├── jquery-ui │ │ ├── accordion Js │ │ ├── autocomplete.js │ │ ├── button.js │ │ ├── core.js │ │ ├── datepicker.js │ │ ├── dialog.js │ │ └── ... │ ├── jquery.js │ └── require.js
However, Using God, directory More
├── index.html ├── JS │ ├── app.js | ── Bower_comannants │ ├── jquery-ui │ │ ├── accordion.js │ │ ├── autocomplete.js │ │ ├── button.js │ │ ├── core.js │ │ ├── datepicker.js │ │ ├── dialog.js │ ├─ Jquery │ │ ├── jquery.js │ └── is required │ │ ├── require.js
requires a configuration so that Jquery Can UI get your dependency?
I was working partially via aliasing bower_components with path attribute in requirejs config but internal jquery Libs are assuming that all javascript files are added together in the same directory structure (relative reference), so it still does not work.
I am thinking of using Grant to copy my dependencies under my JS directory so that everything is on the same base URL. Not quite right, but possibly it would be easier to use RJS or GLP.
Comments
Post a Comment