Open rjaros opened 5 years ago
I did not dive into, but the EOENT failure sound like a problem i got. I also never did use HMR, but may this workaround helps: https://discuss.kotlinlang.org/t/kotlin-js-incremental-compilation/11380
I hope it helps
Thanks. I can confirm that both disabling incremental compilation and additional webpack configuration from https://discuss.kotlinlang.org/t/kotlin-js-incremental-compilation/11380/2 fixes the problem.
Since Kotlin version 1.3.20 HMR feature doesn't work correctly. The command
./gradlew -t run
fails to rebuild the project after any change in the source code with an error like this:Similar error is displayed in the browser console window:
There are some conditions to see this error:
The official "frontend-only" example can be used to reproduce this error after making the above changes in the build.gradle file.
Looking up the changelog for Kotlin 1.3.20 I've noticed this change: "KT-28842 Enable JS IC by default", which looks suspiciously, but disabling IC with
kotlin.incremental.js=false
doesn't solve the problem.