Closed
Description
After countless hours of searching, testing and updating/reverting/etc I have been unable to get a functional distribution build of my angular application.
The core problem seems to be in how Angular is being processed during the 'uglify' stage. The resulting build deploys but via Chrome Inspector it has the following error...
Uncaught Error: [$injector:modulerr] Failed to instantiate module inkhornWebsiteApp due to:
Error: [$injector:modulerr] Failed to instantiate module ngAnimate due to:
Error: [$injector:nomod] Module 'ngAnimate' 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.
http://errors.angularjs.org/1.4.0/$injector/nomod?p0=ngAnimate
at http://localhost:9000/app/fc6352c5.vendor.js:4:982
at http://localhost:9000/app/fc6352c5.vendor.js:4:10271
at b (http://localhost:9000/app/fc6352c5.vendor.js:4:9843)
at http://localhost:9000/app/fc6352c5.vendor.js:4:10155
at http://localhost:9000/app/fc6352c5.vendor.js:4:18826
at f (http://localhost:9000/app/fc6352c5.vendor.js:4:1389)
at n (http://localhost:9000/app/fc6352c5.vendor.js:4:18604)
at http://localhost:9000/app/fc6352c5.vendor.js:4:18773
at f (http://localhost:9000/app/fc6352c5.vendor.js:4:1389)
at n (http://localhost:9000/app/fc6352c5.vendor.js:4:18604)
http://errors.angularjs.org/1.4.0/$injector/modulerr?p0=ngAnimate&p1=Error%…0n%20(http%3A%2F%2Flocalhost%3A9000%2Fapp%2Ffc6352c5.vendor.js%3A4%3A18604)
at http://localhost:9000/app/fc6352c5.vendor.js:4:982
at http://localhost:9000/app/fc6352c5.vendor.js:4:19032
at f (http://localhost:9000/app/fc6352c5.vendor.js:4:1389)
at n (http://localhost:9000/app/fc6352c5.vendor.js:4:18604)
at http://localhost:9000/app/fc6352c5.vendor.js:4:18773
at f (http://localhost:9000/app/fc6352c5.vendor.js:4:1389)
at n (http://localhost:9000/app/fc6352c5.vendor.js:4:18604)
at Ya (http://localhost:9000/app/fc6352c5.vendor.js:4:20294)
at h (http://localhost:9000/app/fc6352c5.vendor.js:4:7915)
at fa (http://localhost:9000/app/fc6352c5.vendor.js:4:8225)
http://errors.angularjs.org/1.4.0/$injector/modulerr?p0=inkhornWebsiteApp&p…0fa%20(http%3A%2F%2Flocalhost%3A9000%2Fapp%2Ffc6352c5.vendor.js%3A4%3A8225)
I have open sourced the repository so other can take a look, try to run a dist build and provide some feedback, any help would be appreciated though! The project resides in the 'redesign' branch of the repository, https://github.com/InkhornGames/InkhornWebsite/tree/redesign