angular-spa-demo
angular-spa-demo copied to clipboard
angular-ui-bootstrap build
Once bower install && npm install was ran, now in bower_components/ all of the needed components where installed, ready to be used.
There was a small problem, though: When running grunt dev, this was in the output:
Running "bowercopy:dev" (bowercopy) task bower_components/angular/angular.js -> dist/dev/js/lib/angular.js bower_components/angular-animate/angular-animate.js -> dist/dev/js/lib/angular-animate.js bower_components/angular-resource/angular-resource.js -> dist/dev/js/lib/angular-resource.js bower_components/angular-route/angular-route.js -> dist/dev/js/lib/angular-route.js bower_components/angular-sanitize/angular-sanitize.js -> dist/dev/js/lib/angular-sanitize.js
bower_components/angular-ui-bootstrap/dist/ui-bootstrap-0.11.0.js was not found bower_components/angular-ui-bootstrap/dist/ui-bootstrap-tpls-0.11.0.js was not found
The problem was that angular-ui-bootstrap did not have the dist/ folder.
I managed to solve this by running the following commands:
cd bower_components/angular-ui-bootstrap npm install grunt --force cd ../../
Is there a better way of solving this problem? Why did this not happen before? We are using the same versions of the library!
Hi @miguelemosreverte
Thanks for checking out the repo, and describing the issues you have had.
Firstly, it's important to note that I haven't really added any functionality to this repo in about 3 years, and it's using an old version of Angular 1.x.
I just did a fresh clone and bower install && npm install, and then ran grunt dev... I got different errors from you:
❯ grunt dev
Running "clean:dev" (clean) task
Running "jshint:files" (jshint) task
Warning: Path must be a string. Received null Use --force to continue.
Aborted due to warnings.
I'm guessing that the errors are related to the original code using an earlier version of npm, bower, or grunt – or several of those.
For reference, I am using macOS Sierra (10.12.6), and the following versions of the above utilities:
❯ npm --version
3.10.10
❯ bower --version
(node:73287) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
1.4.1
❯ grunt --version
grunt-cli v0.1.13
grunt v0.4.5
Unfortunately at this time I don't have the time to investigate further. I'd also guess that there are many other boilerplate repos for Angular 1.x.
Have you tried out Angular (2+)? It's a steep learning curve, but worth the time investment IMO.
Matt