This project is read-only.

Orchard.UI.Resources.RequireSettings displayed when adding jquery

Feb 1, 2013 at 1:46 AM
I have added the following code for to use JQuery to my Layout.cshtml file, and it causes Orchard.UI.Resources.RequireSettings to display twice at the top of the page.
@{ 
    @Script.Require("jQuery")
    @Script.Require("jQueryUI")
}
I googled for the error, and I check the forums here, and the only thing I saw was to add the @{...} around it. I have done that, and I still get the message appearing. What am I doing wrong??

Thanks!
Jul 21, 2015 at 4:51 PM
I know this is an old question, but I just run into this today. The Correct format for the message to disappear is:
@{ 
    Script.Require("jQuery");
    Script.Require("jQueryUI");
}