Trying to install the Resources plugin for type-sa...
# ktor
k
Trying to install the Resources plugin for type-safe routing. However I can't seem to install it. Fresh project created with intellij ktor 2.1.2. Trying to install the plugin results with Application.kt: (21, 9): Not enough information to infer type variable B
a
Could you please share your code?
k
It's the same as the example in the docs pretty much
Copy code
// ...
import io.ktor.server.resources.*
// ...
fun Application.configure() {
    install(ContentNegotiation) {
        json(Json {
            prettyPrint = true
            isLenient = true
            ignoreUnknownKeys = true
        })
    }
    install(Resources)
}