moko-resources icon indicating copy to clipboard operation
moko-resources copied to clipboard

Resources are not copied into build/js folder when separate JS application uses library with MOKO resources in the same project

Open EMaksymenko opened this issue 3 years ago • 0 comments

Hello,

I am developing the NASA WorldWindKotlin 3D GIS library based on the Kotlin Multi-platform stack and we are using MOKO resources to access common images from JS, JVM and Android sources.

Our project consists of the core KMP library module "worldwind" which implements MOKO-resources and two example application modules for Android and JS, which use "worldwind" module as a dependency and do not implement MOKO resources directly.

The Android version of our example application builds fine and see resources from "worldwind" common resources, but the JS version shows an error, because it does not see images in the generated build/js folder. All dependent JS libraries are there, but no resources.

I assume that your library plugin works incorrectly when resources are in the dependent module of the same project and MOKO does not generate/copy resources to the output folder of the application.

error files

EMaksymenko avatar Sep 20 '22 15:09 EMaksymenko