Copied to clipboard

Flag this post as spam?

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


  • nickornotto 397 posts 900 karma points
    Sep 15, 2019 @ 16:53
    nickornotto
    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 354 posts 1638 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

  • nickornotto 397 posts 900 karma points
    Sep 17, 2019 @ 20:41
    nickornotto
    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