Copied to clipboard

Flag this post as spam?

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


  • Michael Nielsen 153 posts 810 karma points
    Mar 12, 2019 @ 09:38
    Michael Nielsen
    0

    DependencyHandler throws an error

    Hey...

    Trying to use this package in a new Umbraco 8 site, but when selecting an option in the editor, I get an error in the console from the DependencyHandler http://prntscr.com/mwprys

    Error: [$injector:unpr] Unknown provider: nProvider <- n
    https://errors.angularjs.org/1.7.5/$injector/unpr?p0=nProvider%20%3C-%20n
        at DependencyHandler.ax…066:formatted:13551
        at DependencyHandler.ax…066:formatted:15589
        at Object.getService [as get] (DependencyHandler.ax…066:formatted:15729)
        at DependencyHandler.ax…066:formatted:15593
        at getService (DependencyHandler.ax…066:formatted:15729)
        at injectionArgs (DependencyHandler.ax…066:formatted:15749)
        at Object.invoke (DependencyHandler.ax…066:formatted:15768)
        at $controllerInit (DependencyHandler.ax…066:formatted:18355)
        at nodeLinkFn (DependencyHandler.ax…066:formatted:17602)
        at compositeLinkFn (DependencyHandler.ax…066:formatted:17176)
    (anonymous) @   DependencyHandler.ax…066:formatted:19759
    (anonymous) @   DependencyHandler.ax…066:formatted:18411
    $digest @   DependencyHandler.ax…066:formatted:22304
    $apply  @   DependencyHandler.ax…066:formatted:22399
    safeApply   @   DependencyHandler.ax…066:formatted:61657
    (anonymous) @   DependencyHandler.ax…066:formatted:61928
    i   @   lazyload.min.js:1
    m   @   lazyload.min.js:1
    

    Setup is like this http://prntscr.com/mwpsq8

    Umbraco v 8.0.0 Iconic v 2.0.0

    Am I missing something?

  • Mario Lopez 168 posts 952 karma points MVP 3x c-trib
    Mar 13, 2019 @ 22:18
    Mario Lopez
    100

    For some reason the minimised versions of the javascript files don't work. I'm going to upload a new package using the unminimised instead. In the meantime you can modify the package.manifest in App_Plugins/Iconic like this:

    "javascript": [
        "~/App_Plugins/Iconic/Js/findPolyfill.js",
        "~/App_Plugins/Iconic/Js/iconic.models.js",
        "~/App_Plugins/Iconic/Js/iconic.controller.js",
        "~/App_Plugins/Iconic/Js/iconic.dialog.controller.js",
        "~/App_Plugins/Iconic/Js/iconic.prevalues.controller.js",
        "~/App_Plugins/Iconic/Js/iconic.directives.js"
      ],
    
  • Michael Nielsen 153 posts 810 karma points
    Mar 15, 2019 @ 11:28
    Michael Nielsen
    0

    I just updated the package via Nuget, which contained the unminified files.

    Works perfectly, thanks for a great package.

Please Sign in or register to post replies

Write your reply to:

Draft