Getting loadSourceError using the debugger when trying to open a file referenced by a sourcemap
Specifically, when using the debugger and trying to open up a source JS file that is referenced in a sourcemap, I now get:
Error loading source: loadSourceError
Yesterday it was working perfectly. The only thing that seems to have changed was updating to version 36.0
All Replies (3)
Hi kanjitattoo, In order to further investigate, do you have an example?
Initially I didn't post more information as I figured it might be a known bug with the new release. I am working on a website which is running locally on my machine. All of my source JS files get compiled into one large JS file along with a .map file: component.js component.js.map
component.js ends with:
//# sourceMappingURL=component.js.map
The .map file (served from the website along with component.js) starts with:
{
"version": 3, "file": "/Users/charles.thomas/code/web-xxx-aaa-bbb/dist/component.js", "sources": [ ......
If I go to the debugger tab (with Show Original Sourced turned on), I can search for and see an entry for the original source files in the popup. I think that the problem may be that the original source files can only be accessed via the file system whereas the I see an HTTP url underneath each source in the popup relative to the http url of the initial file. If that is how it is trying to access them then it will fail. A few days ago it was working fine, I could search for the source files and see them in the debugger as well as set breakpoints.
kanjitattoo দ্বারা পরিমিত
Is there a way to turn on some logging so that I can see more information about the loadSourceError? If it is trying to correctly access the local file system I wonder if something changed in the new update that causes a Mac OSX security issue.