Open
Description
When schema is loaded with useSchemaByContext async function then usePrometheus crashes with:
TypeError: schema.getRootType is not a function
at TypeInfo.enter (/app/node_modules/.pnpm/[email protected]/node_modules/graphql/utilities/TypeInfo.js:162:33)
at Object.enter (/app/node_modules/.pnpm/[email protected]/node_modules/graphql/utilities/TypeInfo.js:387:16)
at visit (/app/node_modules/.pnpm/[email protected]/node_modules/graphql/language/visitor.js:197:21)
at extractDeprecatedFields (file:///app/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@envelop/prometheus/esm/utils.js:235:5)
at handler (file:///app/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@envelop/prometheus/esm/index.js:261:42)
at file:///app/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@envelop/prometheus/esm/index.js:304:43
at Array.forEach (<anonymous>)\n at file:///app/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@envelop/prometheus/esm/index.js:304:18
at file:///app/node_modules/.pnpm/@[email protected]/node_modules/@envelop/core/esm/orchestrator.js:123:17
at requestListener (file:///app/node_modules/.pnpm/@workspace+un-yoga@file++++source+packages+un-yoga/node_modules/@workspace/un-yoga/build/src/builder.js:55:38)"},"msg":"Error in GraphQL request"}
Metadata
Metadata
Assignees
Labels
No labels