Last post Mar 09, 2020 03:02 PM by Rion Williams
Mar 09, 2020 02:41 PM|Markus33|LINK
Could someone please explain to my my solution no longer complies without any errors. Let for the weekend and not the solution does not work/has errors! Markus
Uncaught SyntaxError: Unexpected token ':'
jQuery.Deferred exception: getAllHeroes is not defined ReferenceError: getAllHeroes is not defined
at HTMLDocument.<anonymous> (http://localhost:53472/Scripts/app.js:87:5)
at j (http://localhost:53472/Scripts/jquery-3.1.1.min.js:2:29948)
Uncaught (in promise) Could not establish connection. Receiving end does not exist.
jquery-3.1.1.min.js:2 Uncaught ReferenceError: getAllHeroes is not defined
<div class="comment-right-col comment-body"> <div>
Mar 09, 2020 03:02 PM|Rion Williams|LINK
Can you post some additional details such as where your scripts are defined and _how_ they are defined (i.e. your reference to jQuery and your additional service.js script)? This sounds like it could potentially be a race condition where your service hasn't
yet been loaded and you are trying to make a call to a function it defines.
You may have to make sure your calls are wrapped within a "document ready" block prior to calling them. Any examples of your declarations should make it a bit easier to troubleshoot the issue.