X.js HTTP Error

Hi,

We’re having a couple of errors come up in the dev tools console:

  • DevTools failed to load SourceMap: Could not load content for /wp-content/themes/pro/framework/dist/js/site/x.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

  • DevTools failed to load SourceMap: Could not load content for /wp-content/themes/pro/cornerstone/assets/dist/js/site/cs.0ce70e6.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

From what i can tell these files do not exist, for instance I can find an x.js but not x.js.map.

Any ideas how this can be fixed?

Thanks

Hi @stevenburles,

Thanks for reaching out.

Those errors are just missing source-maps. They are requested by developer tools (especially in Safari) when possible, but won’t interfere with anything.

Basically it’s a way to map a combined/minified file back to an unbuilt state. When you build for production, along with minifying and combining your JavaScript files, you generate a source map which holds information about your original files. When you query a certain line and column number in your generated JavaScript you can do a lookup in the source map which returns the original location.

So, basically you can ignore those errors. Please check out this link for more information (https://stackoverflow.com/questions/19550060/how-do-i-toggle-source-mapping-in-safari-7/19823890#19823890).

Hope that helps.

Thank you.

Hi @cramaton,

Thanks for getting back to me I’m glad to hear they aren’t anything to worry about.

Regards

Hi @stevenburles,

You’re welcome and it’s our pleasure to help you. If you have any other concerns, feel free to reach us.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.