Oleksandr Karpovich [JB]
06/01/2021, 7:30 PMJohn O'Reilly
06/01/2021, 10:52 PMjava.lang.IllegalStateException: could not convert sym to ClassifierSymbol
at org.jetbrains.kotlin.backend.common.serialization.IrFileDeserializer.deserializeSimpleType(IrFileDeserializer.kt:171)
at org.jetbrains.kotlin.backend.common.serialization.IrFileDeserializer.deserializeIrTypeData(IrFileDeserializer.kt:214)
hfhbd
06/02/2021, 12:05 AMJohn O'Reilly
06/02/2021, 6:52 AMOleksandr Karpovich [JB]
06/02/2021, 7:12 AMSam
06/02/2021, 8:46 AMFailed to compile.
Module not found: Error: Can't resolve 'crypto' in '{project path}'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'
- install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "crypto": false }
I've been using webpack.config.d
directory to customize Webpack config, but the error remains even after removing this directory. If I run ./gradlew assemble
it fails with the error ☝️. Running jsBrowserRun
task throws the same error in runtime right after the app loads in browser.Oleksandr Karpovich [JB]
06/02/2021, 9:00 AMSam
06/02/2021, 9:11 AMhfhbd
06/02/2021, 9:19 AMSam
06/02/2021, 9:23 AMio.ktor:ktor-client-js
and io.ktor:ktor-client-serialization
version 1.5.4. I'll try the patch, thanks!
EDIT: webpack patch works fine 👍Oleksandr Karpovich [JB]
06/02/2021, 10:59 AM0.0.0-web-dev-14.1
that overrides coroutines version - 1.5.0 (although androidx doesn't have it yet - https://android-review.googlesource.com/c/platform/frameworks/support/+/1717755) There're no other changes.
dev-14.1 should resolve this issue https://github.com/JetBrains/compose-jb/issues/734
Also tested with "People in Space" project. To make it run, I had to update ktor version ktor = "1.6.0"
(not sure if it aligns with the plans):
const val kotlin = "1.5.10"
const val kotlinCoroutines = "1.5.0"
const val ktor = "1.6.0"
John O'Reilly
06/02/2021, 11:56 AMdarkmoon_uk
06/03/2021, 7:23 AMorg.jetbrains.compose.common.*
are currently provided via the web-named dependencies `compose.web.core`/`compose.web.widgets`?
It doesn't feel right to say 'web' from a common source-set 🤔 Is there an agnostically-named artifact that I'm missing?Tomáš Hubálek
06/03/2021, 1:59 PM0.0.0-web-dev-14.1
(followed https://github.com/JetBrains/compose-jb/releases/tag/0.0.0-web-dev-14) my app stopped working with following error:
Impulse-serverApp.js?2635:94764 Uncaught RangeError: Maximum call stack size exceeded
at start (Impulse-serverApp.js?2635:94764)
at ComposerImpl.startRestartGroup_0 (Impulse-serverApp.js?2635:96609)
at Text$composable_0 (Impulse-serverApp.js?2635:124639)
at _no_name_provided__609.invoke_1091 (Impulse-serverApp.js?2635:124746)
at eval (Impulse-serverApp.js?2635:124839)
at ComposableLambdaImpl.invoke_667 (Impulse-serverApp.js?2635:111790)
at _no_name_provided__608.invoke_1089 (Impulse-serverApp.js?2635:124728)
at eval (Impulse-serverApp.js?2635:124846)
at TagElement$composable (Impulse-serverApp.js?2635:118083)
at Span$composable (Impulse-serverApp.js?2635:118875)
It looks like stack overflow error. Any idea how to find root cause?