hey I get this error ```Exception in thread "main"...
# ktor
m
hey I get this error
Copy code
Exception in thread "main" java.lang.ClassNotFoundException: Module function cannot be found for the fully qualified name 'com.minki.ktor.ApplicationKt.main'
g
Try run it using Gradle task instead you use IDEA runner, often it doesn't work for me
m
tried task:run -> same error
d
The function needs to match this signature:
fun Application.main()
g
I checked again and now I see that this is Ktor exception, because apparently you don't have ApplicationKt.main function which returns ktor module, it should be a function without arguments, as Dico said above In your case your function has name
module
m
thanks it worked, I changed the conf file to use
module
modules = [ com.minki.ktor.ApplicationKt.module ]