Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This tutorial is not compatible with kotlin-wrappers-bom:1.0.0-pre.430+ #42

Open
tokuhirom opened this issue May 19, 2024 · 2 comments
Open

Comments

@tokuhirom
Copy link

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

But 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.
JetBrains/kotlin-wrappers@e7d01b1

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
@tokuhirom
Copy link
Author

If my understanding is correct, use import web.dom.document instead of import kotlinx.browser.document resolve the issue.

@81reap
Copy link

81reap commented Jan 16, 2025

I recently did the jump from 1.0.0-pre.430 to 2025.1.3, see the commit here :: [Commit1][Commit2]. Some things I had to change ::

  • import csstype.* -> import web.cssom.*
  • import dom.html.* -> import web.html.*
  • import kotlinx.browser.document -> import web.dom.document

@tokuhirom hope this helps 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants