Has anyone got this error when trying to open kjs ...
# javascript
b
Has anyone got this error when trying to open kjs IR sourcemaps in the browser?
Copy code
Could not load content for <webpack://sandbox/util.kt> (Fetch through target failed: Unsupported URL scheme; Fallback: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME)
r
Works fine for me, but I'm already testing 1.8-beta
b
Can you share your gradle bits related to sourcemaps (if any)?
r
It just works without any options
checking with 1.7.21 ...
b
Thanks
r
It works with 1.7.21 as well
Source maps generated for my app work without problems, but there are errors when trying to step into library or stdlib code. It looks similar
unsupported protocol for sourcemap request <webpack://kvision-io/commonMainSources/libraries/stdlib/common/src/generated/_Collections.kt?2e3e>
or
unsupported protocol for sourcemap request <webpack://kvision-io/Div.kt?9804>
b
That's exactly the error I'm getting. But i guess my code spawning it is technically library too as I'm consuming that module via includeBuild
Weird
Might be related to -Xir-per-module becoming the default recently
r
I have no idea if there are any source maps inside IR artifacts
b
I do see .map files for all the dependencies on my app build dir, but they aren't served properly
Anyways thanks for saving my sanity. I'll raise a bug.
👍 1
n
I see similar things when doing incremental builds of a library and trying to step through it from an app. This is resolved when I do a clean build of the lib. It’s super frustrating and I haven’t found any other work-around.
e
I have the same problem with sourcemaps for library code. Anyone knows the relevant issues on youtrack?
217 Views