After upgrading to 2.4.0 I have problem building w...
# webassembly
r
After upgrading to 2.4.0 I have problem building wasmJs application on CI (locally works ok).
The error is:
Copy code
Cannot find node module "webpack/bin/webpack.js" in "/root/.kotlin/kotlin-npm-tooling/yarn/e49be039833f93cd8352f956b903151a"
After struggling with this for a few hours I'm a bit out of ideas.
b
@Ilya Goncharov [JB] any idea?
i
Do you have task
kotlinWasmToolingSetup
as executed? And if comparing with your local build, does the path the same
.kotlin/kotlin-npm-tooling/yarn/e49be039833f93cd8352f956b903151a
?
r
The task is executed.
But looking at the logs I see it seems the task might not finish in time.
warning Waiting for the other yarn instance to finish (610)
Perhaps I'll try to use npm instead of yarn ...
i
Hm, usually it means that it waits for other instances to finish. But then it should execute their part of work. Probably yes, after
kotlinWasmToolingSetup
task, the folder is empty and there is no
node_modules
there
r
Using npm fixed the issue! Oh my gosh! I wasted half a day on this. 😭
But thank you for your help. This led me to the solution :)
i
Sorry for that. It is another case for the decision to change the default from yarn to npm 🙂
âž• 1