#Problem with Angular JS

2 messages · Page 1 of 1 (latest)

ivory zealot
#

Hey everyone, I'm running into some issues with AngularJS on a legacy project and I'm kind of stuck…

It's been a while since I last set it up on my machine, and back then it worked fine. It's an Angular 1.5 project with Java in the same repo.

Now I'm trying to run a pipeline to deploy it to the server, but I keep getting these Angular import errors. I've already tried adding bower install in the Dockerfile, but nothing seems to work. The weird part is that if I run the container locally, it works fine.

Can anyone help me out?

agile oasis
#

Can't say much about how AngularJS works anymore it's been so long.

What does it say on the DevTools Networking tab? Is angular loaded at all?

Is the HTML load order correct?
AngularJS first reset follows.

Like so?
<script src="lib/angular/angular.js"></script>
<script src="scripts/app.js"></script>
<script src="scripts/controllers/myController.js"></script>

Do you use a compiler? "ng build --prod" probably was used on JS times for production builds, can't really remember.