“DevTools Failed to Load Source Maps” Warning When Running a webVI in a Browser

Updated Mar 8, 2022

Reported In

Software

  • G Web Development Software

Other

Google Chrome

Issue Details

I built a webVI using the G Web Development Software and when I run it in the browser I get the following warning message when I press F12 to view the Developer Tools: “DevTools Failed to Load Source Maps: Could not load content for...”:
 
warning

What does this warning mean and why does it show up?

Solution

Source maps are used to show readable source code in the developer console when the JS/CSS has been minimized. It is not expected to have this, so the warning can be ignored. The source map warnings show up because the browser recognizes the sources as minimized/packed up in modules and automatically tries to see if the map file is in the expected location relative to the minimized source. To enable the debugger to work with a source map, you must:
  • Generate the source map
  • Include a comment in the transformed file, that points to the source map.

You can disable this type of warning by pressing F12 >> Settings >> Preferences >> Uncheck "Enable JavaScript source maps":
 
disable source maps