Note that there are some explanatory texts on larger screens.

plurals
  1. POAngular.js - error with providerInjector
    primarykey
    data
    text
    <p>I have a problem with providers in angular, I get this error:</p> <blockquote> <p>Row 2696: Error: Unknown provider: a</p> </blockquote> <p>Using unminified angular v 1.06, Row 2696: </p> <pre><code>providerInjector = createInternalInjector(providerCache, function() { throw Error("Unknown provider: " + path.join(' &lt;- ')); }), </code></pre> <p>This is the code:</p> <pre><code>var myApp = angular.module('myApp', [], function ($interpolateProvider) { $interpolateProvider.startSymbol('{[{'); $interpolateProvider.endSymbol('}]}'); }); myApp.directive('buttonsRadio', function() { [...] }); myApp.controller('MainController', function MainController ($scope) { [...] }) </code></pre> <p>Any ideas?</p> <p>Edit: Added error message:</p> <pre><code>Error: Unknown provider: aProvider &lt;- a createInjector/providerInjector&lt;@/libs/angular.js:2696 getService@/libs/angular.js:2824 createInjector/instanceCache.$injector&lt;@/libs/angular.js:2701 getService@/libs/angular.js:2824 invoke@/libs/angular.js:2842 instantiate@/libs/angular.js:2874 @/libs/angular.js:4759 applyDirectivesToNode/nodeLinkFn/&lt;@/libs/angular.js:4338 forEach@/libs/angular.js:138 nodeLinkFn@/libs/angular.js:4323 compositeLinkFn@/libs/angular.js:3969 compositeLinkFn@/libs/angular.js:3972 nodeLinkFn@/libs/angular.js:4354 compositeLinkFn@/libs/angular.js:3969 publicLinkFn@/libs/angular.js:3874 bootstrap/resumeBootstrapInternal/&lt;/&lt;@/libs/angular.js:963 Scope.prototype.$eval@/libs/angular.js:8011 Scope.prototype.$apply@/libs/angular.js:8091 bootstrap/resumeBootstrapInternal/&lt;@/libs/angular.js:961 invoke@/libs/angular.js:2857 bootstrap/resumeBootstrapInternal@/libs/angular.js:960 bootstrap@/libs/angular.js:973 angularInit@/libs/angular.js:934 @/libs/angular.js:14756 f.Callbacks/n@http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js:2 f.Callbacks/o.fireWith@http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js:2 .ready@http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js:2 B@http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js:2 /libs/angular.js Line 5704 </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload