Consistent Dev Tools Errors

Can someone talk to me about why I see these warnings in almost every site I work on in PRO:

DevTools failed to load SourceMap: Could not load content for https://pathtoinstall.wpengine.com/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 https://pathtoinstall.wpengine.com/wp-content/themes/pro/cornerstone/assets/dist/js/site/cs.0ce70e6.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

I even found a few sites in the wild running X and PRO and found this on those as well. Just wondering what this is all about and/or if I need to do anything about this. Please advise.

Thanks!

Hi @simeoned,

Those errors that you’re referring 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.

Please check out this link: https://stackoverflow.com/questions/19550060/how-do-i-toggle-source-mapping-in-safari-7/19823890#19823890

Hope that helps.
Thanks!

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