Hi guys, i was trying to use compose resources in ...
# compose-web
s
Hi guys, i was trying to use compose resources in my project, it works fine for android, ios and desktop, but not for compose web(Kotlin/JS), getting this issue:
Copy code
CoroutineExceptionHandlerImpl.kt:7 MissingResourceException: Missing resource with path: ./values/strings.xml
Any idea why this issue is there in compose web Kotlin/Js ?
This issue is happening with old project structure which was created using old compose multiplatform project template
This one is resolved, Just posting update here so that If anyone else may be having this issue, It may help. It was due to resources were not being copied to
webApp/build/processedResources/js/main
, as we dont have webApp as separate module in new project structure, they will be copied to
composeApp/build/processedResources/js/main
, So i added one task to copy resources to
webApp/build/processedResources/js/main
from
shared/commonMain/composeResources
in webApp build.gradle.
👍 1