Missing .map resource?

I recently had a problem with all of my projects. When my index page is loaded containing a link to the jquery source file, my console logs this error: GET http://localhost:3000/js/lib/jquery-1.10.2.min.map 500 (Internal Server Error) .

This does not affect my application at all, but it is really annoying when I open the console. Does anyone know where this comes from?

Edit: Please note that I am not explicitly specifying the .map file, I am just pointing to <script src="js/lib/jquery-1.10.2.min.js"></script>

+47
javascript jquery html
Aug 28 '13 at 23:27
source share
2 answers

JQuery recently started using source maps.

For example, consider a miniature jQuery 2.0.3 file in the first few lines.

 /*! jQuery v2.0.3 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */ 

Excerpt from Introduction to JavaScript Source Maps :

Have you ever wanted you to be able to keep your client-side code readable and, more importantly, debugged even after you combine and minimize it without affecting performance? Ok, now you can through the magic of the source cards.

This is basically a way to map a merged / mini file to an undeveloped state . When you create for production, along with combining your JavaScript files, you create a source map that runs information about your source files. When you request a specific row and column number in your generated JavaScript, you can do a search in the original map, which returns the original location . Developer tools (currently new to WebKit, Google Chrome, or Firefox 23+) can automatically analyze the source map and make it look like you are running unminified and uncombined files.

This is incredibly useful and will only load if the user opens developer tools.

Decision

Delete the source mapping line or do nothing. It's not a problem.




Side note: your server should return 404, not 500. It may indicate a security problem if this happens during production.

+82
Aug 28 '13 at 23:33
source share

I had the same expansion as you. I have a Denwer server. When I uploaded my http://new.new local site without using the script src jquery.min.js file in index.php in Chrome, I got a 500 jquery.min.map error in the console. I solved this problem simply - I disabled the Wunderlist extension in Chrome and voila - I no longer see this error. Although, no, I found this error again - when Wunderlist turned on again. So, check your extensions and try to disable them, or some of them, or one at a time. Good luck

-8
Sep 27 '13 at 8:58
source share



All Articles