Open tokuhirom opened 3 months ago
Current version of this tutorial depends on kotlin-wrappers-bom:1.0.0-pre.430. https://github.com/kotlin-hands-on/web-app-react-kotlin-js-gradle/blob/finished/build.gradle.kts#L28
kotlin-wrappers-bom:1.0.0-pre.430
But the latest version is kotlin-wrappers-bom:1.0.0-pre.750. I want to use the recent version of the module.
kotlin-wrappers-bom:1.0.0-pre.750
but kotlin-wrappers introduce following patch between 1.0.0-pre.430 and 1.0.0-pre.431. https://github.com/JetBrains/kotlin-wrappers/commit/e7d01b1f03fb795429003c4d0037ddf73d768115
As a result, this tutorial can't compile with the latest kotlin-wrappers-bom:1.0.0-pre.750.
Type mismatch: inferred type is org.w3c.dom.Element but web.dom.Element was expected
If my understanding is correct, use import web.dom.document instead of import kotlinx.browser.document resolve the issue.
import web.dom.document
import kotlinx.browser.document
Current version of this tutorial depends on
kotlin-wrappers-bom:1.0.0-pre.430
. https://github.com/kotlin-hands-on/web-app-react-kotlin-js-gradle/blob/finished/build.gradle.kts#L28But the latest version is
kotlin-wrappers-bom:1.0.0-pre.750
. I want to use the recent version of the module.but kotlin-wrappers introduce following patch between 1.0.0-pre.430 and 1.0.0-pre.431. https://github.com/JetBrains/kotlin-wrappers/commit/e7d01b1f03fb795429003c4d0037ddf73d768115
As a result, this tutorial can't compile with the latest
kotlin-wrappers-bom:1.0.0-pre.750
.