Hottowel Durandal 2 issue with RequireJS
I have been working on a Hottowel project when Durandal 2.0 came out, so I
upgraded, naturally. It kind of messed up the file structure, moved
require.js and durandal folder to Scripts folder etc. I ended up moving
the durandal folder back to the App folder, as in the original Hottowel
template and pointing to require.js in the Scripts folder in index.cshtml.
But suddenly, I get these errors on page load:
GET http://localhost:7153/App/jquery.js 404 (Not Found) require.js:1880
GET http://localhost:7153/App/plugins/history.js 404 (Not Found)
require.js:1880
GET http://localhost:7153/App/knockout.js 404 (Not Found) require.js:1880
I am loading jQuery and knockout bundled (using ASP.NET bundling) before
loading require and starting durandal:
@Scripts.Render("~/scripts/vendor")
@if(HttpContext.Current.IsDebuggingEnabled) {
<script type="text/javascript" src="~/Scripts/require.js"
data-main="@Url.Content("~/App/main.js")"></script>
} else {
<script type="text/javascript" src="~/App/main-built.js"></script>
}
Any idea how to fix it? I would hate to have to go back to Durandal 1.2.
No comments:
Post a Comment