Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

video.js.map throwing a 404 (Not Found)

Tags:

video.js

Playing around with the newest video.js today, I'm noticing that video.js.map is showing up as a 404 when putting the video.js script into a site that I'm working on.

I don't see a source map file in the initial distribution, but it doesn't throw this error locally, only when I put it on a server.

Ideas as to solving?

like image 797
ff4500 Avatar asked Aug 23 '13 16:08

ff4500


1 Answers

You have a few options when you don't have access to a source map:

  • Ignore the message. It generaly only gets thrown when your dev tools are open.
  • Remove the reference in the original file. These are the last characters (comments) at the end of the file.
  • Generate a source map yourself when you have access to the source code. For video.js, it can be generated from video.dev.js.
  • Use a public CDN version which might not link to the source map.

There also is a discussion on GitHub about this topic.

like image 177
smhg Avatar answered Sep 30 '22 20:09

smhg