0

I read a lot of articles about this issue and even downloaded the jquery source map into the same directory as jquery after reading this

sourceMappingURL from jquery generates 404 error in apache

. But I still have the same error

Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead

How can i fix that ?

Community
  • 1
  • 1
John Max
  • 432
  • 8
  • 23
  • 1
    Does doing what the error told you to do not work? – Spencer Wieczorek Jan 10 '15 at 21:03
  • The problem is that i don't know how to do what i am asked to do here. When i click on the link given by firebug it brings me inside jquery at the first line where it is written `/*! jQuery v2.1.3 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */` – John Max Jan 11 '15 at 04:55
  • Replace the `@` with `#` to suppress it, yes edit the jQuery file. This may be an issue with and older version of firefox [according to this answer](http://stackoverflow.com/questions/21759662/file-is-being-assigned-a-sourcemappingurl-but-already-has-one). – Spencer Wieczorek Jan 11 '15 at 05:00
  • The problem is that i do not find any `@` aside of only one place in the script and that is deep inside the jquery `kc=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)` and i am not sure that i have to replace that one . Do i ? – John Max Jan 11 '15 at 20:28
  • There should be a source mapping at the top of the page. But no not that one as it's part of a regular expression. – Spencer Wieczorek Jan 11 '15 at 20:40
  • Yes normally but i am not finding one. Please check http://code.jquery.com/jquery-2.1.3.min.js Is there one there ? – John Max Jan 11 '15 at 20:50
  • Is that your only file, perhaps there is another js file causing this? I don't see anything in that code that could cause the error. – Spencer Wieczorek Jan 11 '15 at 22:22

1 Answers1

1

I downloaded the Jquery Map for that version and placed it in the same directory. After restarting, that problem was no more

John Max
  • 432
  • 8
  • 23