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

Running gateway as a proxy errors, as @graphql-mesh/transport-http is nissing #94

Closed
gilgardosh opened this issue Nov 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@gilgardosh
Copy link

Reproduce:
Basically follow the current documentation, run as a proxy, and try opening GraphiQL.

  1. Setup Hive-GW with basic config, e.g:
export const gatewayConfig = defineConfig({
  proxy: {
    endpoint: "http://localhost:4001/graphql",
  },
});
  1. run the gateway
hive-gateway supergraph \
  http://cdn.graphql-hive.com/artifacts/v1/12713322-4f6a-459b-9d7c-8aa3cf039c2e/supergraph \
  --hive-cdn-key "YOUR HIVE CDN KEY"
  1. Try opening GraphiQL (usually http://localhost:4000/graphql)
  2. Get the error Failed to introspect schema Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@graphql-mesh/transport-http' imported from /project/node_modules/@graphql-mesh/fusion-runtime/esm/utils.js
@enisdenjo
Copy link
Member

Fixed in one of the latest releases.

@enisdenjo enisdenjo added the bug Something isn't working label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants