I am currently utilizing gulp to create a distribution folder (dist) for my Angular application.
After consolidating all the controllers/services JS files and CSS, I am now faced with handling the contents of the bower folder.
In an attempt to concatenate all the JS files using gulp-useref, I encountered an error related to a missing dependency.
Despite trying to copy the entire bower_components folder, I continued to encounter the following error:
angular.js:68 Uncaught Error: [$injector:modulerr] Failed to instantiate module app due to:
Error: [$injector:modulerr] Failed to instantiate module theRoutes due to:
Error: [$injector:unpr] Unknown provider: e
The relevant HTML code is as follows:
<!-- build:js assets/deps.js -->
<script src="/bower_components/angular/angular.js"></script>
<script src="/bower_components/angular-route/angular-route.js"></script>
<script src="https://code.angularjs.org/1.5.5/angular-sanitize.js"></script>
<script src="/bower_components/angular-messages/angular-messages.js"></script>
<!-- endbuild -->
Any insights or suggestions on what might be causing this issue?