GraphQLSwift / Graphiti

The Swift GraphQL Schema framework for macOS and Linux
MIT License
526 stars 66 forks source link

error: no such module 'Runtime' #66

Open imfractured opened 3 years ago

imfractured commented 3 years ago

Hi! My team is looking to use this package in our BFF and I was trying to get the docker image to build but I'm running into an issue where I see error: no such module 'Runtime' coming from /build/.build/checkouts/Graphiti/Sources/Graphiti/Field/Field/Field.swift:2:8:

I'm assuming I need to add some framework to my docker container but I'm not exactly sure which one? Any help would be much appreciated!

Thanks! Nick

alexsteinerde commented 3 years ago

Hi. Which version of Graphiti and which version of Swift are you using? With version 0.25.0 of Graphiti the package Runtime has been removed as a dependency. I would recommend to update the GraphQL and Graphiti dependencies to the lastest version (or a version above 0.25.0 if the latest version is not working for you).

alexsteinerde commented 3 years ago

If you need an example, I'm using the Vapor template for most of my Dockerfiles. This file does work for me with a Swift 5.4 GraphQL project: https://github.com/alexsteinerde/vapor-graphql-examples/blob/master/web.Dockerfile