My issue was the missing require.config. The tutorial says to search for:
waitSeconds: 0
But this code is not generated default.
This was the missing piece of code to load external JS files via require.js
require.config({
baseUrl: "{{SPLUNKWEB_URL_PREFIX}}/static/js",
waitSeconds: 0, // Disable require.js load timeout
// For this tutorial, download third-party libraries over the internet.
// In practice, it is recommended that you bundle dependencies with your app.
paths: {
'jquery-ui': 'http://code.jquery.com/ui/1.10.0/jquery-ui',
'd3': 'http://d3js.org/d3.v2.min',
'sankey': 'http://bost.ocks.org/mike/sankey/sankey',
'sankey-helper': '{{SPLUNKWEB_URL_PREFIX}}/static/app/musicdashboardtutorial/sankey-helper',
'flux': 'http://www.joelambert.co.uk/flux/js/flux'
},
shim: {
'jquery-ui': {
deps: ['jquery']
},
'sankey': {
deps: ['d3']
},
'sankey-helper': {
deps: ['sankey']
},
'flux': {
deps: ['jquery']
}
}
});
Now it's working
... View more