Sunil Kumar
09/09/2023, 8:21 AMModule not found: Error: Can't resolve 'localization/comyourflixercommon_stringsJson.json' in '/Users/sunil/AndroidStudioProjects/YourFlixer-KMP/build/js/packages/yourflixer/kotlin'
Any idea?Sunil Kumar
09/09/2023, 8:22 AMMike Dawson
09/09/2023, 11:34 AMsourceSets {
commonMain {
}
jsMain {
dependsOn commonMain
}
}
Even though jsMain dependsOn commonMain itself, adding it explicitly made it cooperate for me.Sunil Kumar
09/09/2023, 11:44 AMMike Dawson
09/09/2023, 11:53 AMMike Dawson
09/09/2023, 11:54 AMSunil Kumar
09/09/2023, 11:54 AMMike Dawson
09/09/2023, 11:58 AMSunil Kumar
09/09/2023, 12:02 PMSunil Kumar
09/10/2023, 7:45 AMalex009
09/11/2023, 8:05 AMbuild
directory content with build
content of your projects. maybe you find step where resources not pass on next step. for example resources was successful generated inside build/generated
, next successful packed into klib
, but from klib
to app not copiedSunil Kumar
09/17/2023, 5:02 AMSunil Kumar
09/17/2023, 11:52 AMmoko-resources-generated.js
webpack file generated only once after setting up moko resources?,
Actually in moko resources sample, after first successful run, if i delete webpack.config.d/moko-resources-generated.js
file from webApp just for testing, then it does not work, start getting the same error i am gettting.
AND after that i tried every possible thing, clean build, invalidate cache and all, but id did not generated that file again, whats the reason?
AND that same reason is for my issue. It didnt generated that file in webApp but only generated in shared module, Not sure what is the reason, But if i manually copy that file into webApp as well, then it works.
SO the main question here: is that moko webpack config file is generated only once only after the setup as i am not able to generate it again.. EVen i tried generateMRCommonMain as wellSunil Kumar
09/17/2023, 12:15 PMSunil Kumar
09/17/2023, 12:20 PMwebpack.config.d/somefile
file in webApp, then it does not generate moko-resources-generated.js
in webApp, this was the main reason in my case.Sunil Kumar
09/17/2023, 12:26 PMalex009
09/17/2023, 4:33 PMmoko-resources-generated.js
is generated at generateMRjsMain
task run. this file required for plugin.
also you should add moko-resources plugin in shared module and web app module. both module should have applied plugin. in webapp plugin will copy resources from dependencies and pack into app.Sunil Kumar
09/28/2023, 3:34 AM