[fix]-Error jquery-2.0.2.min.map not found

Wikitechy | 1739 Views | jquery | 01 Jun 2016

 

Scenario:

The error may occur because of source mapping.

Error:

Error 'jquery-2.0.2.min.map not found'

Purpose of a source map:

The source mapping is included in jquery to map a combined/minified file back to an unbuilt state. When the site is built for production, along with minifying and combining the JavaScript files, a source map is generated which holds information about the original files. When a query is raised on a certain line and column number in the generated JavaScript a lookup is made in the source map which returns the original location.

Fix 1:

Remove the below source mapping line from my jquery-2.0.2.min.js :

//@ sourceMappingURL=jquery-2.0.2.min.map

Fix 2:

Download and place the file “jquery-2.0.2.min.map” in the same location as jquery-2.0.2.min.js. The file can be downloaded from http://code.jquery.com/jquery-2.0.2.min.map

Fixes are applicable to the following versions of jquery :

  • jquery 1.11
  • jquery 1.12
  • jquery 2.0
  • jquery 2.1
  • jquery 2.2

Related Error Tags :

  • jQuery x.x.x.min.map not found error
  • jQuery's jquery-1.10.2.min.map is triggering a 404
  • jQuery min v1.10.1 error reading jquery-1.10.1.min.map not found 
  • Failure to find jquery-2.0.2.min.map




Workshop

Bug Bounty
IOT Hackathon
Webinar

Join our Community

Advertise