In my browser console I am using AJAX request for getting an authentication token and redirect to my dashboard, but when I click to the login/sign-in button, nothing is happening. My link contains my email and password and my console generating an error:
devtools failed to parse sourcemap js popper js map in asp.net mvc 5
I tried everything I can think of, including updating the browser and packages. Please can someone solve this problem
my login URL is Home/Login
2
Answers
As we can see from your IDE screenshot, your
vendor/bootstrap/js
folder does not includepopper.js.map
, so whenpopper.js
tries to load it, it fails, and throws the warning you reported here.You can download the sourcemap file from the following URL:
https://unpkg.com/browse/[email protected]/dist/umd/popper.js.map
Make sure to select the correct Popper.js version from the dropdown.
A better alternative would be to use a package manager, such as npm, NuGet, or Bower, since that’s the preferred way to install the library.
First of all, to get rid of this warning (in google chrome) just do as follows:
F12: (Go to Developer Tools), then tick the box ‘Selected context only’
Second, this warning is not related to your code (See a comprehensive description on this subject here).