https://kotlinlang.org logo
p

Pablichjenkov

07/28/2023, 4:35 PM
Weird behavior that happens when run develop but not for production task. See crash inside 🧵
Copy code
ERROR
Failed requirement.
IllegalArgumentException: Failed requirement.
    at BringIntoViewResponderNode.get_current [as get_current_76jhw1_k$] (webpack-internal:///./kotlin/compose-multiplatform-core-ui.js:718:13)
    at _get_localParent__9fzpok (webpack-internal:///./kotlin/compose-multiplatform-core-foundation.js:15192:18)
    at protoOf.get_parent_hy4reb_k$ (webpack-internal:///./kotlin/compose-multiplatform-core-foundation.js:15222:26)
    at syncAggregateChildKindSet (webpack-internal:///./kotlin/compose-multiplatform-core-ui.js:33541:19)
    at protoOf.updateFrom_rn6bgr_k$ (webpack-internal:///./kotlin/compose-multiplatform-core-ui.js:34011:7)
    at protoOf.set_modifier_cidbkm_k$ (webpack-internal:///./kotlin/compose-multiplatform-core-ui.js:28298:18)
    at ComposeUiNode$Companion$SetModifier$lambda (webpack-internal:///./kotlin/compose-multiplatform-core-ui.js:24355:16)
    at eval (webpack-internal:///./kotlin/compose-multiplatform-core-runtime.js:3455:7)
    at eval (webpack-internal:///./kotlin/compose-multiplatform-core-runtime.js:3828:13)
    at applyChangesInLocked (webpack-internal:///./kotlin/compose-multiplatform-core-runtime.js:6118:17)
Get above erro when running jsBrowserDevelopmentRun but not happening if I run jsBrowserProductionRun.
Copy code
cmp version: 1.5.0-beta01
Stacktrace bellow:
Copy code
IllegalArgumentException
cause
: 
undefined
message
: 
"Failed requirement."
name
: 
"IllegalArgumentException"
stack
: 
"IllegalArgumentException: Failed requirement.\n    at BringIntoViewResponderNode.get_current [as get_current_76jhw1_k$] (webpack-internal:///./kotlin/compose-multiplatform-core-ui.js:718:13)\n    at _get_localParent__9fzpok (webpack-internal:///./kotlin/compose-multiplatform-core-foundation.js:15192:18)\n    at protoOf.get_parent_hy4reb_k$ (webpack-internal:///./kotlin/compose-multiplatform-core-foundation.js:15222:26)\n    at syncAggregateChildKindSet (webpack-internal:///./kotlin/compose-multiplatform-core-ui.js:33541:19)\n    at protoOf.updateFrom_rn6bgr_k$ (webpack-internal:///./kotlin/compose-multiplatform-core-ui.js:34011:7)\n    at protoOf.set_modifier_cidbkm_k$ (webpack-internal:///./kotlin/compose-multiplatform-core-ui.js:28298:18)\n    at ComposeUiNode$Companion$SetModifier$lambda (webpack-internal:///./kotlin/compose-multiplatform-core-ui.js:24355:16)\n    at eval (webpack-internal:///./kotlin/compose-multiplatform-core-runtime.js:3455:7)\n    at eval (webpack-internal:///./kotlin/compose-multiplatform-core-runtime.js:3828:13)\n    at applyChangesInLocked (webpack-internal:///./kotlin/compose-multiplatform-core-runtime.js:6118:17)"
[[Prototype]]
: 
RuntimeException
constructor
: 
ƒ IllegalArgumentException()
$metadata$
: 
{kind: 'class', simpleName: 'IllegalArgumentException', associatedObjectKey: undefined, associatedObjects: undefined, suspendArity: Array(0), …}
length
: 
0
name
: 
"IllegalArgumentException"
prototype
: 
RuntimeException {constructor: ƒ}
arguments
: 
(...)
caller
: 
(...)
[[FunctionLocation]]
: 
kotlin-kotlin-stdlib-js-ir.js:26938
[[Prototype]]
: 
ƒ ()
[[Scopes]]
: 
Scopes[4]
[[Prototype]]
: 
Exception
constructor
: 
ƒ RuntimeException()
$metadata$
: 
{kind: 'class', simpleName: 'RuntimeException', associatedObjectKey: undefined, associatedObjects: undefined, suspendArity: Array(0), …}
length
: 
0
name
: 
"RuntimeException"
prototype
: 
Exception {constructor: ƒ}
arguments
: 
(...)
caller
: 
(...)
[[FunctionLocation]]
: 
kotlin-kotlin-stdlib-js-ir.js:27090
[[Prototype]]
: 
ƒ ()
[[Scopes]]
: 
Scopes[4]
[[Prototype]]
: 
Error
constructor
: 
ƒ Exception()
$metadata$
: 
{kind: 'class', simpleName: 'Exception', associatedObjectKey: undefined, associatedObjects: undefined, suspendArity: Array(0), …}
length
: 
0
name
: 
"Exception"
prototype
: 
Error {constructor: ƒ}
arguments
: 
(...)
caller
: 
(...)
[[FunctionLocation]]
: 
kotlin-kotlin-stdlib-js-ir.js:27047
[[Prototype]]
: 
ƒ ()
[[Scopes]]
: 
Scopes[4]
[[Prototype]]
: 
Object
o

Oleksandr Karpovich [JB]

07/28/2023, 5:03 PM
Reported here https://youtrack.jetbrains.com/issue/KT-60635 There's a workaround
p

Pablichjenkov

07/28/2023, 5:19 PM
🤓 great to hear. Trying later
11 Views