I'm getting getting "ej.navigations is undefined" error when I'm using "https://cdn.syncfusion.com/ej2/ej2-navigations/dist/global/ej2-navigations.js"
When I try to use "https://cdn.syncfusion.com/ej2/ej2-navigations/dist/global/ej2-navigations.min.js" I get this error "Uncaught TypeError: r is undefined"
But everything works when I use "https://cdn.syncfusion.com/ej2/dist/ej2.min.js"
Since ej2 in itself is a big file I'm trying to only use the resources I need. I'm loading the js in the following order
<script src="https://cdn.syncfusion.com/ej2/ej2-base/dist/global/ej2-base.min.js" type="text/javascript"></script>
<script src="https://cdn.syncfusion.com/ej2/ej2-buttons/dist/global/ej2-buttons.min.js" type="text/javascript"></script>
<script src="https://cdn.syncfusion.com/ej2/ej2-navigations/dist/global/ej2-navigations.min.js" type="text/javascript"></script>
And my usage for the ej.navigations is something like
modifierTree = new ej.navigations.TreeView({
fields: { id: 'nodeId', text: 'nodeText', child: 'nodeChild' },
showCheckBox: true,
nodeChecked: function() {
if (!modifierCheckedAuto) {
updateGraph();
}
},
});
Thank you in advance for the help