Uncaught ReferenceError: KTAppOptions is not defined

Uncaught ReferenceError: KTAppOptions is not defined

hasmukh.savaliyahasmukh.savaliya Posts: 2Questions: 1Answers: 0

Can anyone give me the reason why jqery js is throwing this error "Uncaught ReferenceError: KTAppOptions is not defined"?
Below are scripts that is added into code in the same orders.

<script src="~/lib/jquery/dist/jquery.min.js"></script>
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script src="~/js/site.js" asp-append-version="true"></script>
<script src="~/js/scripts.bundle.js"></script>
<script src="~/js/datatables.bundle.min.js" type="text/javascript"></script>
<script src="~/js/dataTables.editor.min.js" type="text/javascript"></script>

Please provide your valuable feedback on this or please suggest what I am missing to include like any datatable js is miss or not.

Thanks,

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,167Questions: 26Answers: 4,921

    "Uncaught ReferenceError: KTAppOptions is not defined"

    KTAppOptions is not part of Datatables. I'm not sure what library it belongs to but it seems you might not be loading it.

    Kevin

  • hasmukh.savaliyahasmukh.savaliya Posts: 2Questions: 1Answers: 0

    Kevin,

    First of all thanks for you quick answer.

    I am using KTDatatable and when I browser runs the file scripts.bundle.js file the error occurs please check below code

    // Initialize KTApp class on document ready
    $(document).ready(function() {
    KTApp.init(KTAppOptions);
    });

    Above code is rendered from scripts.bundle.js file KTAppOptions that I does not found into that js file that's why the error is.

    Do you have any recommendation to fix this issue?

    Please also check attached screen shot for more idea about the error point of line.

  • kthorngrenkthorngren Posts: 21,167Questions: 26Answers: 4,921
    Answer ✓

    KTDatatable is a different library than the Datatables,js library on this site. Found this sitr. Is that what you are using? You will need to work with the developers of KTDatatable.

    Kevin

This discussion has been closed.