Copied to clipboard

Flag this post as spam?

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


  • manila 238 posts 540 karma points
    Sep 15, 2019 @ 16:53
    manila
    0

    All bundles broken after upgrade to 7.15.1

    I've just upgraded my umbraco from v7.6.0 to v.7.15.1 and all bundles got broken.

    So this setup in the BundleConfig.cs doesn't work anymore:

    public static void RegisterBundles(BundleCollection bundles)
            {
                bundles.Add(new ScriptBundle("~/js/jquery").Include(
                            "~/Content/components/jquery/dist/jquery.min.js"));
    
    }
    

    All bundle paths are added to umbracoReservedPaths as well.

    They all worked fine in 7.6 and got broken after the update.

    Has there anything changed in the 7.15.1 version of umbraco regarding bundles?

  • Shaishav Karnani from digitallymedia.com 330 posts 1536 karma points
    Sep 16, 2019 @ 05:16
    Shaishav Karnani from digitallymedia.com
    100

    Hi Manila,

    As you have upgraded the solution so your Global.asax.cs gor updated.

    It has removed this code.

        BundleConfig.RegisterBundles(BundleTable.Bundles);
    

    Please can we add the same.

    Reference Link: https://gist.github.com/jkarsrud/5143239

    Please let me know your views and how can we assist further.

    Cheers,

    Shaishav

  • manila 238 posts 540 karma points
    Sep 17, 2019 @ 20:41
    manila
    0

    Thanks, that was it!

    I saw the global.asax.cs has been deleted during the upgrade, I totally forgot the budles are registered there.

Please Sign in or register to post replies

Write your reply to:

Draft