Giter VIP home page Giter VIP logo

Comments (7)

eymar avatar eymar commented on August 16, 2024 3

Yes, the fix was implemented a bit a later than 2.0.20-Beta1.

2.0.20-Beta2 should have it.

from compose-multiplatform.

PMARZV avatar PMARZV commented on August 16, 2024 1

A workaround is here #5045 (comment) (my problem was with Surface Material 3)

from compose-multiplatform.

eymar avatar eymar commented on August 16, 2024 1

Hi @bnorm! Thanks for reporting!

Indeed, 1.7.0-dev and alpha (and all furter builds) won't work in web with kotlin 2.0.0, because the compose compiler for web for 2.0.0 doesn't support a new API added in compose runtime 1.7.0

For now, you can use kotlin:

  • 2.0.10-RC-515 with the default compiler plugin
  • or 1.9.24 with compose compiler 1.5.14.1-beta02

The fix can't be backported to 2.0.0, it will be available only in kotlin 2.0.10.

from compose-multiplatform.

HamaniKhalil avatar HamaniKhalil commented on August 16, 2024

Ha, I was about to create an issue like this one !
I confirm that this is happening in compose 1.7.0-alpha01. Because I had about the same stacktrace and it was fixed only by downgrading to compose 1.6.11 !!!
In my case the CompositionLocalProvider that crashed was something related to Surface from Material3, also tried to downgrade to Surface from Material i.e. Material 2.

from compose-multiplatform.

eymar avatar eymar commented on August 16, 2024

I'm closing this one as I see no particular actions on our side, except suggesting to use a correct Kotlin version.
Feel free to add more questions or reopen if needed.

from compose-multiplatform.

bnorm avatar bnorm commented on August 16, 2024

I can confirm that version 2.0.10-RC-515 does indeed my issue. Thanks!

I did test this with 2.0.20-Beta1 and the issue was present there. I'm guessing the issue will be fixed in the next 2.0.20 release as well?

from compose-multiplatform.

okushnikov avatar okushnikov commented on August 16, 2024

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

from compose-multiplatform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.