I have a multiplatform project with common, js and...
# javascript
t
I have a multiplatform project with common, js and JVM definitions published to my local maven. I'm depending on that from a kotlin-js app (using the frontend plugin) and I'm running into two problems 1) "please check whether 'kotlin' is loaded prior to [module-js]" 2) if I manually patch the bundle to have kotlin.js before the bundle then I get an error that definitions in [module-js] are undefined Shouldn't the bundle include kotlin.js? Also perhaps I'm misunderstanding how to consume a multiplatform dependency?
c
what
moduleKind
do you use?
a
Make sure you are using the correct moduleKind
t
It is currently set to commonjs
The module kind in the app and not the multiplatform project dep, correct?
In the multiplatform module! Thank you @anton.bannykh and @cy