just trying to run the Todo tutorial. it works wel...
# doodle
g
just trying to run the Todo tutorial. it works well for desktop but when i try to run the web target via
jsBrowserRun
i get an error about not finding coroutines library. i added the coroutines library to
commonMain
source dependencies so that gradle can get the js coroutines library. still won’t build or run for js target. am i missing something?
n
hmm. will take a look.
Are you running the TodoRunner? This is the app you should launch. It is done in this way b/c the Todo app is written as a library (just to facilitate its use in the docs). Unfortunately there is an issue if the DocApps tries to depend no a library with
main
. So I had to make the app a lib for this. Anyway, the coroutines dependency should already be in the Todo lib here: https://github.com/nacular/doodle-tutorials/blob/master/Todo/build.gradle.kts#L19. And you should be able to do
jsBrowserRun
from within TodoRunner. Let me know if that works.
g
That's what I tried and it gave me the error about not finding coroutines
🤔
I also tried running from the Todo project just to see. But that didn't work with the same error. I can't build the jsMainClasses task
n
What platform are you on?
g
Mac Intel
n
K. I'll dig and see if I can root cause. Thanks for sharing the issue. Also, any issue with the other apps in the tutorial?
g
Haven't tried the others. I was digging into the Todo app and changing the theme to get my feet wet. It's really cool!
👍 1
Koin syntax isn't my favorite for DI but that's just me
n
I went with Kodein modules for DI to avoid code bloat on web. Kotlin’s tree shaking isn't that great yet unfortunately.
g
Yeah that's very true