Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It doesn't work when start the local server with GraphiQL using the runtime composite #50

Open
dugubuyan opened this issue Oct 19, 2022 · 2 comments

Comments

@dugubuyan
Copy link

Error happened after I have done everything just as the doc(https://composedb.js.org/docs/0.3.x/first-composite) said.there is an error like this below:
Cannot use GraphQLScalarType "String" from another module or realm.

Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.

https://yarnpkg.com/en/docs/selective-version-resolutions

Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.

@simonas-notcat
Copy link

I'm having the same issue

@simonas-notcat
Copy link

Solved this by running composedb with pnpm dlx

pnpm dlx @composedb/cli graphql:server --ceramic-url=http://localhost:7007 --graphiql --port=5001 runtime-composite.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants