I am using multiple kotlinjs in one project. Probl...
# javascript
m
I am using multiple kotlinjs in one project. Problem is, yarn is in root project and it is shared. thats makes conflicts, because of overwriting. Is there smart way to handle this?
h
Nope. That’s one of the main flaws of KGP/JS, it uses one global yarn/npm lockfile. You could use multiple includedBuilds if your Gradle setup supports it.
But what conflicts do you have particularly?
m
I see. Problem is, one library using like 6 npm and other like 1. So when I am developing, I am running on backgroud script, which generate smaller js(I am generating preview of some generated layout in JS) So suddenly missing references on js running in webpack. So I have to restart build of first one . Problem is only in dev environment.(I changed Yarn mode to WARNING from FAIL)