jared
06/12/2024, 4:22 PMdata-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? Thanksjared
06/12/2024, 4:56 PMdata-models
dependency and it's working.