You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
255.2 /build/Sources/App/Modules/Authentication/OAuth/ImperialRouter+Controller.swift:28:11: error: type 'any ResponseEncodable' does not conform to the 'Sendable' protocol
255.2 26 | return try Google
255.2 27 | .getUser(on: request)
255.2 28 | .flatMap { userInfo in
255.2 | `- error: type 'any ResponseEncodable' does not conform to the 'Sendable' protocol
255.2 29 | Author
255.2 30 | .query(on: request.db)
255.2
255.2 /build/.build/checkouts/vapor/Sources/Vapor/Response/ResponseCodable.swift:7:17: note: protocol 'ResponseEncodable' does not conform to the 'Sendable' protocol
255.2 5 | ///
255.2 6 | /// Types that conform to this protocol can be returned in route closures.
255.2 7 | public protocol ResponseEncodable {
255.2 | `- note: protocol 'ResponseEncodable' does not conform to the 'Sendable' protocol
255.2 8 | /// Encodes an instance of `Self` to a `Response`.
255.2 9 | ///
255.2
255.2 /build/Sources/App/Modules/Authentication/OAuth/ImperialRouter+Controller.swift:3:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Vapor' as warnings
255.2 1 |
255.2 2 | import ImperialGoogle
255.2 3 | import Vapor
255.2 | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Vapor' as warnings
255.2 4 | import Fluent
255.2 5 |
255.2
255.2 /build/Sources/App/Modules/Authentication/OAuth/ImperialRouter+Controller.swift:33:17: error: type 'any ResponseEncodable' does not conform to the 'Sendable' protocol
255.2 31 | .filter(\.$username == userInfo.email)
255.2 32 | .first()
255.2 33 | .flatMap { foundUser in
255.2 | `- error: type 'any ResponseEncodable' does not conform to the 'Sendable' protocol
255.2 34 |
255.2 35 | guard
255.2
255.2 /build/.build/checkouts/vapor/Sources/Vapor/Response/ResponseCodable.swift:7:17: note: protocol 'ResponseEncodable' does not conform to the 'Sendable' protocol
255.2 5 | ///
255.2 6 | /// Types that conform to this protocol can be returned in route closures.
255.2 7 | public protocol ResponseEncodable {
255.2 | `- note: protocol 'ResponseEncodable' does not conform to the 'Sendable' protocol
255.2 8 | /// Encodes an instance of `Self` to a `Response`.
255.2 9 | ///
The text was updated successfully, but these errors were encountered:
Running Vapor apps in the Swift 6 language mode is problematic at the moment - you should use Swift 5 language mode. Can you show your code? Because it might be a workaround (and see what you're trying to return as Sendable)
The text was updated successfully, but these errors were encountered: