Base solution for your next web application
Open Closed

Unhandled exception while inspect element #1625


User avatar
0
sison created

Hi,

A unhandled exception comes when i inspect element from browser. exception is:

The controller for path '/Scripts/toastr.js.map' was not found or does not implement IController.

i dont understand why it comes always. The toaster.js is already there in same path im using VS 2013.


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You can uncheck "Enable javascript source mappings" in Google Chrome's developer console settings. This file will not be requested if you disable this setting.

  • User Avatar
    0
    korigoth created

    Hey,

    I have the same problem with the ABP Template, so i get it in my log while dev.

    The way I resolved this problem:

    • Remove the Toastr Nuget. (Because we doesnt get the sourcemap file)
    • Go on GitHub : <a class="postlink" href="https://github.com/CodeSeven/toastr">https://github.com/CodeSeven/toastr</a>
    • Download the code and put the new CSS, JS file to their place.

    PROS/CONS ++ Now you updated Toastr to 2.1.3 instead of 2.1.1 and you have your source file -- You lost track of your dependency in Nuget Management but it's a library that doesn't evolve anymore (or at least it's rarely updated with new features)

    You can disable it in google chrome as Ismcagdas said if you doesn't care to be able to debug this library.