After upgrading to Kotlin 2.0 and Compose to 1.6.1...
# compose-web
g
After upgrading to Kotlin 2.0 and Compose to 1.6.10 I'm finding that jsRun produces an error
[webpack-cli] Invalid options object. Dev Server has been initialized using an options object that does not match the API schema
. Is anyone else seeing this? More details in thread.
🚫 1
The full error is:
Copy code
> [webpack-cli] Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
   - options has an unknown property '_assetEmittingPreviousFiles'. These properties are valid:
     object { allowedHosts?, bonjour?, client?, compress?, devMiddleware?, headers?, historyApiFallback?, host?, hot?, ipc?, liveReload?, onListening?, open?, port?, proxy?, server?, setupExitSignals?, setupM
iddlewares?, static?, watchFiles?, webSocketServer? }
g
Thanks for the suggestion, but since I am using Kotlin multiplatform all of this should be handled by the gradle plugin - from that it looks like a potential version mismatch, but I'm not even sure it is possible for me to control the webpack version (nor should I need to).
I found the issue, which was due to a different subproject from the one in which I was using the jsRun task. The other subproject had pinned the webpackCLI version in the build.gradle.kts to 4.10.0 to get around a problem I ran into long ago, and I used the fix described here. Removing that, now lets the other subproject execute jsRun successfully.
👍 1