You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.
The second one contained a link to a project which modifies the main.kotlin.srcDirs by adding project(':').file('src/main/kotlin'), this however lead me to an issue with compiler errors in IntelliJ, which can be seen here: C06A/KUrlet#1
So a clear example of how to actually share code between JS and JVM is appreciated.
The text was updated successfully, but these errors were encountered:
Add some common module, or common code somewhere, that both frontend and backend has a dependency on.
I have read these two discussions:
https://discuss.kotlinlang.org/t/kotlin-to-javascript-and-kotlin-to-jvm-servlets-in-one-project/2600
https://discuss.kotlinlang.org/t/compiling-kotlin-to-both-java-and-javascript-from-the-same-module/1944
The second one contained a link to a project which modifies the
main.kotlin.srcDirs
by addingproject(':').file('src/main/kotlin')
, this however lead me to an issue with compiler errors in IntelliJ, which can be seen here: C06A/KUrlet#1So a clear example of how to actually share code between JS and JVM is appreciated.
The text was updated successfully, but these errors were encountered: