[Solved-5 Solutions] jQuery's jquery-1.10.2.min.map is triggering a 404 (Not Found)
Error Description:
- We see error messages about a file,
min.map,being not found:
GET jQuery's jquery-1.10.2.min.map is triggering a 404 (Not Found)
Solution 1:
- Download the map file link for your version, and we will want the uncompressed file downloaded as well.
- Having the map file in place allows you do debug your minified jQuery via the original sources.
Solution 2:
- We can alternatively disable JavaScript source maps completely for now, in the settings. This is a fine choice if we never plan on debugging JavaScript on this page.
Solution 3:
- We can remove the 404 by removing the line
//@ sourceMappingURL=jquery-1.10.2.min.map
click below button to copy the code. By - JavaScript tutorial - team
- The top part of the jQuery file will look like this.
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
*/
click below button to copy the code. By - JavaScript tutorial - team
- Just change that to
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license */
click below button to copy the code. By - JavaScript tutorial - team
Solution 4:
- This could also be caused by our web server restricting which file types are served:
- In Apache this could be done with the <FilesMatch> directive or a RewriteRule if we’re using mod_rewrite.
- In IIS you'd need to look to the Web.config file
Solution 5:
- Rename
jquery-1.9.1.min.map
click below button to copy the code. By - JavaScript tutorial - team
- To
jquery.min.map