This is a Minimal, Complete, and Verifiable example that tries to demonstrate the error raised in AngularJS when using CasperJS (PhantomJS/Webkit engine). The sample was taken from the auth0-angularjs-samples repository.
The error received is:
Error: Error: [$injector:unpr] Unknown provider: authServiceProvider <- authService
http://errors.angularjs.org/1.6.8/$injector/unpr?p0=authServiceProvider%20%3C-%20authService
Open the file sample/auth0-variables.js
and replace the CLIENT_ID
and DOMAIN
placeholders with a valid Auth0 client information.
Install Docker and Docker Compose. Refer to their documentation for more information.
Then run:
docker-compose up --build --abort-on-container-exit
The containers should stop after the test execution finishes. If that doesn't happen, you can exit the container by pressing CTRL+C
.
To clear any orphan container run:
docker-compose down
- The container image doesn't seem to be recreated when running
docker-compose up
. --> This seems to be the intended behavior as the developers describe here. You can force a recreate by callingdocker-compose build
from the project root.