291325 (2) [Avatar] Offline
#1
I am getting this error:

Error: [$injector:unpr] Unknown provider: chanceFilterProvider <- chanceFilter
http://errors.angularjs.org/1.3.13/$injector/unpr?p0=chanceFilterProvider%20%3C-%20chanceFilter
    at REGEX_STRING_REGEXP (http://localhost:4400/lib/ionic/js/ionic.bundle.js:8890:12)
    at http://localhost:4400/lib/ionic/js/ionic.bundle.js:12824:19
    at Object.getService [as get] (http://localhost:4400/lib/ionic/js/ionic.bundle.js:12971:39)
    at http://localhost:4400/lib/ionic/js/ionic.bundle.js:12829:45
    at Object.getService [as get] (http://localhost:4400/lib/ionic/js/ionic.bundle.js:12971:39)
    at $get [as $filter] (http://localhost:4400/lib/ionic/js/ionic.bundle.js:25361:24)
    at Parser.filter (http://localhost:4400/lib/ionic/js/ionic.bundle.js:20958:19)
    at Parser.filterChain (http://localhost:4400/lib/ionic/js/ionic.bundle.js:20952:19)
    at Parser.statements (http://localhost:4400/lib/ionic/js/ionic.bundle.js:20931:30)
    at Parser.parse (http://localhost:4400/lib/ionic/js/ionic.bundle.js:20788:22)
ionic.bundle.js (20434,24)


It's got something to do with Angular JS version. Although I'm not sure how to fix it.

Here's another user who had this issue: http://forum.ionicframework.com/t/beta-14-unknown-provider-filterprovider/14214

jeremy.wilken (208) [Avatar] Offline
#2
That is an error that means the file is not being included in the app, or you have a typo module name "App". Check that you have a reference to the chance filter in your index.html file.

Jeremy
385967 (1) [Avatar] Offline
#3
I ran into the same issue.In my case this happened because I had not created the filters yet.

Right after I implemented listing 6.17, my chrome inspecter showed that error. I was troubleshooting for a while and I couldn't figure it out. When I decided to keep moving forward, I noticed the following in the 1st paragraph right after listing 6.17:

"Until you create the filters, the application won't be able to correctly load."

Of course, once I created the filters, everything worked.

Perhaps you could move that advisory to right above listing 6.17, so that users/students are somewhat aware of what to expect.