I have a strange problem with JS incremental compi...
# javascript
r
I have a strange problem with JS incremental compilation. It doesn't work in some of my projects after migration to K2 and I've just tested and pinpointed that the problem is the name of one of the the source files in common module. How can the file name have any effect on incremental compilation errors?
If I rename this file to any other name (e.g.
Service.kt
or
INumberService.kt
the problems are gone.
But when it is
NumberService.kt
it somehow clashes with
NumberService
class used in my project (and only with incremental compilation)
Does Kotlin/JS compiler generates some classes based on the file names (similar to JVM)?
Is this a compiler bug?
This is an example error message during incremental compilation of this project:
Copy code
> Task :compileKotlinJs FAILED
e: file:///home/rjaros/git/kvision-examples/numbers-fullstack-javalin/src/jsMain/kotlin/com/example/App.kt:59:51 Cannot access 'com.example.INumberService' which is a supertype of 'com.example.NumberService'. Check your module classpath for missing or conflicting dependencies.
t
AFAIK - It's known problem - I saw similar on YouTrack
r
I've searched YT for incremental compilation issues but haven't found any similar issues.
t
New issue required :(