define("lib/config", [], function() {
"use strict";
var e = document.getElementById("app-config");
return e ? JSON.parse(e.innerHTML) : {}
})
That’s the problematic section of code. the app-config element isn’t always loaded before this part is being executed. If possible, hard code your app-config into your html
solved 1 Uncaught SyntaxError: Unexpected end of JSON input