Graphiti icon indicating copy to clipboard operation
Graphiti copied to clipboard

error: no such module 'Runtime'

Open imfractured opened this issue 4 years ago • 2 comments

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

imfractured avatar Aug 03 '21 02:08 imfractured

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 avatar Aug 03 '21 05:08 alexsteinerde

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

alexsteinerde avatar Aug 03 '21 05:08 alexsteinerde