If you are getting a “Could not read source map for file” error in the console when trying to link to a JavaScript library like Tensorflow, the solution is simple. You propably don’t need the source map anyways unless you are planning to really digging into the code base of the library. So simply:
- Open the script file in your code editor
- Scroll all the way down
- Remove the source map link at the bottom of the file