locked
Exception in JavaScript files. RRS feed

  • Question

  • User1421620300 posted

    Can someone help me with understanding the scripting process in Javascript. The following error demonstrates my results when i launch my website.  The exception loops through each of my scripts with the same error. But the application is clean! Please explain? Markus

    The same results for all scripts:

    playerController.js

    teamController.js

    App.js

    Failed to load resource: the server responded with a status of 404 (Not Found)

    playerController.js:8 Uncaught ReferenceError: angular is not defined
    at playerController.js:8
    at playerController.js:10

    Tuesday, December 18, 2018 8:04 PM

Answers

  • User475983607 posted

    The 404 means the js file reference is incorrect or missing on the server.  Open the Network window the browser's Dev Tools.  Click in the 404 error and find the URL.  Then have a look on your server to see if the file exists or perhaps exists in another location.

    Perhaps visit Angular support if you are having difficulty deploying.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, December 18, 2018 8:15 PM