Keep in mind that js works fine without packages. But whenever I use a package, I get timeouts for the modules I'm trying to import.
This is how I build packages using asp.net mvc bundler / minifier
bundles.Add(new ScriptBundle("~/bundles/test").Include( "~/scripts/jquery-{version}.js", "~/scripts/bootstrap.js", "~/scripts/moment.js")); bundles.EnableOptimizations = true;
Heres is the js config requirement in the cshtml file:
<script> require.config({ baseUrl: "/scripts", paths: { jquery: "jquery-1.11.2" }, waitSeconds: 20, shim: { bootstrap: { deps: ['jquery'] } }, bundles: { '@Scripts.Url("~/bundles/test").ToString()': [ 'jquery', 'bootstrap', 'moment' ] } }); require(["app/main/test"]); </script>
And js for the page (app / main / test):
require(['jquery', 'moment'], function ($, moment) { console.log(moment().format()); });
The Jquery, bootstrap, and moment libraries are in the test suite I created, but I get load timeouts by loading the page in an instant.
Here's the error of the chrome inspector:

Any ideas?
early.
source share