Hey folks, I'm looking to integrate Kotlin/JS into an existing KMM project and just doing some experimenting
here before diving in, but running into some issues as all samples are based around the web project being built with kotlin. Instead we want to set it up that the web project knows nothing about kotlin, the web project just imports a javascript package that happens to contain all the shared application code.
In Andorid/iOS the common code portion spits out as an android lib/xcode framework. I've got as far as generating a javascript module (using Kotlin/JS IR) but am stuck with this error - and a lack of knowledge of the JS ecosystem:
Cannot find module 'shared' or its corresponding type declarations.
The module is imported to the web project with
"shared": "file:../build/js/packages/shared"
and into the javascript file with
import { Platform } from 'shared';
Any idea where I may be going wrong?