Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • AWatters 33 posts 174 karma points
    Feb 25, 2022 @ 16:05
    AWatters
    0

    Random Angular errors in back end

    I have 2 sites, a production site and development site, both running side by side on IIS, using uSkinned from a couple years back. The development site is still running ok but the live site has developed some random angular quirks.

    When you click on the icon top left where you'd normally have Logout and Umbraco versions it has:

    {{item.name}}
    Change password
    {{property.caption}} 
    

    and then in Console there is

    angular.min.js?cdv=20211131:63 Error: Circular dependency: 
        at Object.c [as get] (angular.min.js?cdv=20211131:27:43)
        at angular.min.js?cdv=20211131:109:235
        at u (angular.min.js?cdv=20211131:70:141)
        at v (angular.min.js?cdv=20211131:75:72)
        at l (angular.min.js?cdv=20211131:69:507)
        at Rc (angular.min.js?cdv=20211131:75:170)
        at angular.min.js?cdv=20211131:78:426
        at e (angular.min.js?cdv=20211131:54:483)
        at P (angular.min.js?cdv=20211131:50:76)
        at w (angular.min.js?cdv=20211131:41:423)
    

    This we can live with, however today we noticed that the Grid layout component is not working either. Similar error:

    Error: Circular dependency: 
        at Object.c [as get] (https://www.xxx.com/umbraco/lib/angular/1.1.5/angular.min.js?cdv=20211131:27:43)
        at https://www.xxx.com/umbraco/lib/angular/1.1.5/angular.min.js?cdv=20211131:109:235
        at u (https://www.xxx.com/umbraco/lib/angular/1.1.5/angular.min.js?cdv=20211131:70:141)
        at v (https://www.xxx.com/umbraco/lib/angular/1.1.5/angular.min.js?cdv=20211131:75:72)
        at l (https://www.xxx.com/umbraco/lib/angular/1.1.5/angular.min.js?cdv=20211131:69:507)
        at Rc (https://www.xxx.com/umbraco/lib/angular/1.1.5/angular.min.js?cdv=20211131:75:170)
        at https://www.xxx.com/umbraco/lib/angular/1.1.5/angular.min.js?cdv=20211131:78:426
        at a.$watchCollection (https://www.xxx.com/umbraco/lib/angular/1.1.5/angular.min.js?cdv=20211131:89:58)
        at https://www.xxx.com/umbraco/lib/angular/1.1.5/angular.min.js?cdv=20211131:160:330
        at k (https://www.xxx.com/umbraco/lib/angular/1.1.5/angular.min.js?cdv=20211131:44:444) <!-- ngRepeat: availableItem in model.availableItems | compareArrays:model.selectedItems:'alias' | orderBy:'name' | filter:searchTerm -
    

    Nothing has changed on this site, that I know of, that would have affected the angular.min.js file.

    I tried deleting App_Data/Temp and recycling (and stop/starting) the App Pool. I also tried copying the angular.min.js file from the test site which works to the production site. Neither made any difference.

    Is this a known issue or can anyone recommend anywhere to start? Thanks

  • AWatters 33 posts 174 karma points
    Feb 25, 2022 @ 16:34
    AWatters
    100

    Ok - I have got the Grid Layout working for now, "Umbraco\Views\common\overlays\itempicker\itempicker.html" -

    <ul class="umb-card-grid">
            <li ng-repeat="availableItem in model.availableItems | compareArrays:model.selectedItems:'alias' | orderBy:'name' | filter:searchTerm"
                ng-click="selectItem(availableItem)"
    

    is now:

    <ul class="umb-card-grid"> 
            <li ng-repeat="availableItem in model.availableItems"
                ng-click="selectItem(availableItem)"
    

    Don't know why but heyho

Please Sign in or register to post replies

Write your reply to:

Draft