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

Compose for web tutorial didn't work #1100

Closed
dodalovic opened this issue Aug 24, 2021 · 3 comments
Closed

Compose for web tutorial didn't work #1100

dodalovic opened this issue Aug 24, 2021 · 3 comments
Assignees
Labels
question Not a bug, but question or comment wait for reply Further information is requested web

Comments

@dodalovic
Copy link

Was following https://github.com/JetBrains/compose-jb/tree/master/tutorials/Web/Getting_Started.

Stacktrace:

❯ ./gradlew jsBrowserRun

Welcome to Gradle 7.1!

Here are the highlights of this release:
 - Faster incremental Java compilation
 - Easier source set configuration in the Kotlin DSL

For more details see https://docs.gradle.org/7.1/release-notes.html

Starting a Gradle Daemon, 2 incompatible and 1 stopped Daemons could not be reused, use --status for details

> Configure project :
Kotlin Multiplatform Projects are an Alpha feature. See: https://kotlinlang.org/docs/reference/evolution/components-stability.html. To hide this message, add 'kotlin.mpp.stability.nowarn=true' to the Gradle properties.


> Task :jsBrowserDevelopmentRun FAILED
[webpack-cli] Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
 - configuration has an unknown property '_assetEmittingWrittenFiles'. These properties are valid:
   object { bonjour?, client?, compress?, dev?, firewall?, headers?, historyApiFallback?, host?, hot?, http2?, https?, liveReload?, onAfterSetupMiddleware?, onBeforeSetupMiddleware?, onListening?, open?, port?, proxy?, public?, setupExitSignals?, static?, transportMode?, watchFiles? }

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':jsBrowserDevelopmentRun'.
> [webpack-cli] Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
   - configuration has an unknown property '_assetEmittingWrittenFiles'. These properties are valid:
     object { bonjour?, client?, compress?, dev?, firewall?, headers?, historyApiFallback?, host?, hot?, http2?, https?, liveReload?, onAfterSetupMiddleware?, onBeforeSetupMiddleware?, onListening?, open?, port?, proxy?, public?, setupExitSignals?, static?, transportMode?, watchFiles? }

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 21s
9 actionable tasks: 6 executed, 3 up-to-date
@Schahen Schahen added the web label Aug 24, 2021
@akurasov akurasov self-assigned this Aug 30, 2021
@akurasov akurasov added the question Not a bug, but question or comment label Aug 30, 2021
@akurasov
Copy link
Contributor

It seems to be the same issue as #1058
Try to see if the WA helps you

@akurasov akurasov added the wait for reply Further information is requested label Aug 30, 2021
@Schahen
Copy link
Collaborator

Schahen commented Sep 10, 2021

Schahen added a commit that referenced this issue Sep 10, 2021
This is a temporary fix for #1100
@Schahen
Copy link
Collaborator

Schahen commented Sep 10, 2021

Hey @dodalovic thanks for reporting! This is caused by an issue in kotlin gradle plugin - luckily there's a workaround - I've temporarily patched all examples so now they are supposed to be working.

@Schahen Schahen closed this as completed Sep 10, 2021
mareklangiewicz pushed a commit to mareklangiewicz/compose-jb that referenced this issue Feb 14, 2022
IlyaGulya pushed a commit to IlyaGulya/TodoAppDecomposeMviKotlin that referenced this issue Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Not a bug, but question or comment wait for reply Further information is requested web
Projects
None yet
Development

No branches or pull requests

3 participants