#14225 closed bug (notabug)
Not Found Error in Google Chrome 29.0.1547.41 beta
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.10.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hi, I am getting an error: /jquery-1.10.2.min.map 404 (Not Found). I see this been included in jquery.min.js file but is commented out. However, chrome is ignoring the comment and looking for the source.
Any suggestions/idea?
Thanks! Umesh
Change History (5)
comment:1 Changed 10 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
comment:2 Changed 10 years ago by
For those dissatisfied with the answer either because you didn't rename the file or the fallback use a CDN like I was. This error can also be 'fixed' by removing the comment on line 2 of the file. Change the following:
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license @ sourceMappingURL=jquery-1.10.2.min.map */
to:
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license */
comment:3 Changed 10 years ago by
Otherwise this requires a patch to jQuery. The syntax for sourceMapping has changed. See the following: http://updates.html5rocks.com/2013/06/sourceMappingURL-and-sourceURL-syntax-changed
comment:4 Changed 10 years ago by
Chrome supports either //#
or //@
at the moment. Other tools only support //@
and have not changed. See #13983.
comment:5 Changed 10 years ago by
A more proper solution to this ticket, which I didn't see last night, downloading the map file on the download page and placing it in your jQuery directory on the web server will resolve the 404.
Chrome will show that error message if you rename the
jquery.min.js
file. Do not rename the file if you do not want to get the error. The map, minified file, and unminified file must have consistent names. If you reference the files from the jQuery, Google, or Microsoft CDNs this will be the case.