Hi, trying to compile to JavaScript some code that uses the @JvmDefault annotation, the kotlinc-js compiler says:
error:unresolved reference: JvmDefault
Is there a way to ignore these annotations when compiling to JavaScript? (Except preprocessing the source files during build and removing the annotations.)
I think it is because your code is not a cross-platform module. The annotation does not exist in the Javascript version, but common modules are allowed to have such annotations and then ignore them later (an unresolved expectation). In other words, to make this work you should probably bite the bullet and actually use a multiplatform project (probably with gradle), or at least include the common version of the standard library.