I have 2 KMP modules: 1st contains shared data mod...
# multiplatform
j
I have 2 KMP modules: 1st contains shared data models (
data-models
), 2nd contains API client (
client-kmp
). The client has the
data-models
as a dependency. When I generate the javascript library (with typescript definitions) I get several files in
build/dist/js/productionLibrary
. I added these files to a react app and attempted to use the API client; however, it fails to resolve the data models because they aren't exported in the generated
client-kmp.mjs
. The models are in the generated
data-models.mjs
but they are unusable because the
client-kmp.mjs
expects the model as defined by
client-kmp.d.ts
. I would prefer to have separate modules for
data-models
and `client-kmm`; however, I think in order for the JS exports to work properly I may need to combine the modules. Has anyone faced this issue before or have suggestions? Thanks
I just used a symlink and removed the
data-models
dependency and it's working.