I read more about Kotlin/JS and actually found out...
# multiplatform
a
I read more about Kotlin/JS and actually found out the issue, but don't know how to fix it: Inspecting the console of the website, it prints:
The script from "<http://127.0.0.1:8080/static/Quotes-app.js>" was loaded even though its MIME type ("") is not a valid JavaScript MIME type.
Loading failed for the <script> with source "<http://127.0.0.1:8080/static/Quotes-app.js>".
Now if I look in the build directory (
Quotes/app/build
), I'd expect the JS file somewhere. The problem is, that the JS output does't land in
Quotes/app/build
, where the rest of the MPP lands, but in
Quotes/build
. So it's no surprise, that Ktor server can't find the file and can't send it to the client. Two questions: How to achieve, that all files land in the same build directory? And why doesn't Ktor throw an exception, if the resource is not available?