Miguel Vera Belmonte
06/15/2021, 1:47 PMfomantic
example (I suppose could be any other example too), I’ve done as instructed in the docs:
To enable source maps you need to remove line sourceMaps = false from your build.gradle.kts file and remove line config.devtool = 'eval-cheap-source-map' from webpack.config.d/webpack.js file.
and enabled legacy compiler by setting under gradle.properties:
kotlin.js.compiler=legacy
But I’m not able to get source maps working. I think they were working on 4.1.0, which is the latest version I tried before updating. To test, I make a simple console.log() on App.kt and then I get the following error when clicking the line number on the console:
Could not load content for <webpack://fomantic/../src/main/kotlin/com/example/App.kt?f474> (HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME)
Is anyone having this issue as well?Miguel Vera Belmonte
06/15/2021, 2:58 PMsource-map-loader
npm package version mismatch (https://youtrack.jetbrains.com/issue/KT-46608). There is a workaround in the comments.Miguel Vera Belmonte
06/15/2021, 3:00 PMRobert Jaros
06/15/2021, 3:45 PMRobert Jaros
06/15/2021, 3:46 PM