Copied to clipboard

Flag this post as spam?

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


  • Steve Morgan 1349 posts 4458 karma points c-trib
    Nov 03, 2016 @ 15:51
    Steve Morgan
    0

    Build from core gets a too great version of Angular Dynamic Locale

    Hi,

    I was trying to build the core Umbraco during the Umbraco UK Festival Hackathon and found that I was getting the following error in the backoffice (which was blocking backoffice functionality).

    tmhDynamicLocale.js:152 Uncaught TypeError: e.$applyAsync is not a function(…) angular.min.js?cdv=1:63 TypeError: Cannot read property 'offsetTop' of undefined

    Turns out that NPM / Bower / Grunt (* delete as correct - no idea!) was using a newer version of Angular Dynamic Locale (0.1.32) rather than the max version of 0.1.27

    Not sure why - tried all sorts of batch rebuilds, and there seems to be a clear cache called before the packages are built

    Sebastiaan seems to have set this in the src/Umbraco.Web.UI.Client/bower.json file as per:

    https://github.com/lgalfaso/angular-dynamic-locale/issues/82 https://github.com/umbraco/Umbraco-CMS/commit/7a4b7c25ddbe8b327d178db3687bc32c7086b97a

    But for some reason it's not working.

    Anyone know why?

  • Steve Morgan 1349 posts 4458 karma points c-trib
    Nov 03, 2016 @ 16:01
    Steve Morgan
    0

    I fixed these errors by copying over from a downloaded zip of the source the Umbraco/lib/ folder over

    Umbraco-CMS\src\Umbraco.Web.UI\Umbraco\lib

  • Steve Morgan 1349 posts 4458 karma points c-trib
    Nov 03, 2016 @ 16:40
    Steve Morgan
    100

    Node.js was hideously out of date on my machine and causing the issue.

    Got the latest LTS version from:

    https://nodejs.org/en/download/

    enter image description here

    Re-ran the build.bat and then all was good. (5 hours later).

    Steve

Please Sign in or register to post replies

Write your reply to:

Draft