1

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

enter image description here

enter image description here

David Buck
  • 3,752
  • 35
  • 31
  • 35
Bilal Khan
  • 11
  • 1
  • 2
  • Please edit your question to add your well-formatted code. It makes diagnosis of a problem much more difficult if you only supply a picture of code, and it makes it much less likely that anyone will help you. – David Buck Apr 18 '20 at 07:48

2 Answers2

1

As we can see from your IDE screenshot, your vendor/bootstrap/js folder does not include popper.js.map, so when popper.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/popper.js@1.16.1/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.

npm i popper.js
Fez Vrasta
  • 14,110
  • 21
  • 98
  • 160
0

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' enter image description here

Second, this warning is not related to your code (See a comprehensive description on this subject here).

Ali Safari
  • 1,535
  • 10
  • 19