When working on a kotlin-js react project, Intelli...
# react
w
When working on a kotlin-js react project, IntelliJ is extremely slow for me. For example, when it takes about 20 seconds for autocompletion to show, while on a kotlin-jvm project, it takes less than 1 second. And when doing an action like "import", it takes about 5 seconds to actually import and recognize it. Is this expected for some reason?
t
No, it doesn’t expected
Could you clean IDEA caches for start?
w
well... that solved most of it
or perhaps the upgrade to 2021.2.3 did something
now the only thing that is still slow is the compiler
it will take about 2 minutes to compile a hello world project, and changes in the code take up to 3 minutes to be visible in the browser
t
IR or legacy?
w
IR
t
Could you try legacy?
w
Task 'browserDevelopmentRun' not found in root project
are the legacy tasks just named differently or do I need to configure them somewhere?
t
Looks like you use
both
mode instead
c
My whole project takes ~15 seconds to compile after the first run. (First run of the day can take up to ~15 minutes because of dependencies and stuff), so I'd say it's unexpected
w
after creating a new project with legacy compiler, it is much faster I suppose something weird is going on with my setup of the IR compiler
t
Problem is common for IR You can vote here and here