can't get room to work on kmp desktop target i kee...
# room
t
can't get room to work on kmp desktop target i keep getting Unresolved reference errors (logs in thread) when i try to run on desktop but android works fine anyone else encountered this before?
Copy code
e: file:///Users/tahabanashur/IdeaProjects/pos-android/posKMP/composeApp/build/generated/ksp/desktop/desktopMain/kotlin/ly/demoapp/pos/pos_kmp/cache/database/AppDatabase_Impl.kt:12:14 Unresolved reference 'annotation'.
e: file:///Users/tahabanashur/IdeaProjects/pos-android/posKMP/composeApp/build/generated/ksp/desktop/desktopMain/kotlin/ly/demoapp/pos/pos_kmp/cache/database/AppDatabase_Impl.kt:65:2 Unresolved reference 'Generated'.
e: file:///Users/tahabanashur/IdeaProjects/pos-android/posKMP/composeApp/build/generated/ksp/desktop/desktopMain/kotlin/ly/demoapp/pos/pos_kmp/cache/database/bracelet/BraceletDao_Impl.kt:9:27 Unresolved reference 'performBlocking'.
ok i found out that someone forgot to make the dao functions suspending 🤣 now its all working
d
Huh, you should have gotten an error saying 'non-suspending' DAO functions are invalid in common / non-Android code.
t
yeah for that project i didn't get that error but when i tried to implement the same database in a new KMP project i got that error and went back to my original project to fix it then