So now I have a compiler issue: The `browserDevelo...
# react
i
So now I have a compiler issue: The
browserDevelopmentRun
Task works fine, webpack starts and I can debug the app However, as soon as I run
browserProductionWebpack
I get a Problem while
processDceKotlinJs
is running
error: at ... (1546, 185): invalid property id
error: at ... (3946, 181): invalid property id
This looks pretty much like Issue 1077 where the use of the legacy-union package is suggested. Before trying that however, I wanted to check out, if by now I couldn't just switch from LEGACY to IR. However as soon as I change to IR, when gradle is confiured all the browser... tasks are gone - without any error. What could be the issue? here's the relevant part of build.gradle.kts:
t
For legacy -
legacy-union
is required in most cases to avoid DCE problems In IR there is no such problem
👍 1
i
But how can I even work with IR if the gradle tasks are gone? the whole group "kotlin browser" isn't there anymore as soon as i switch to IR
t
Missed
binary.executable()
?
👍 1
i
ah thanks - I thought I only needed that if i actually wanted binaries
t
Right
And webpack has sense only if you have binaries