You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling a GraphQL operation with an internal directive from a TS operation, the client falls to build.
DTS Build start
../.wundergraph/operations/v1/content/articles/RelatedBySlug.ts(17,7): error TS2741: Property 'username' is missing in type '{ category: string; page: number | undefined; pageSize: number | undefined; slug: string; }' but required in type 'V1ContentArticlesByCategoryAndSlugFilterInputInternal'.
Error: error occured in dts build
at Worker.<anonymous> (/Users/ray/Desktop/Projects/graph/client/node_modules/tsup/dist/index.js:2294:26)
at Worker.emit (node:events:514:28)
at MessagePort.<anonymous> (node:internal/worker:263:53)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:778:20)
at exports.emitMessage (node:internal/per_context/messageport:23:28)
DTS Build error
RollupError: Failed to compile. Check the logs above.
at error (/Users/ray/Desktop/Projects/graph/client/node_modules/rollup/dist/shared/rollup.js:349:30)
at Object.error (/Users/ray/Desktop/Projects/graph/client/node_modules/rollup/dist/shared/rollup.js:1715:20)
at Object.error (/Users/ray/Desktop/Projects/graph/client/node_modules/rollup/dist/shared/rollup.js:25438:42)
at generateDtsFromTs (/Users/ray/Desktop/Projects/graph/client/node_modules/tsup/dist/rollup.js:7512:22)
at /Users/ray/Desktop/Projects/graph/client/node_modules/tsup/dist/rollup.js:7519:59
at _nullishCoalesce (/Users/ray/Desktop/Projects/graph/client/node_modules/tsup/dist/rollup.js:1:198)
at Object.transform (/Users/ray/Desktop/Projects/graph/client/node_modules/tsup/dist/rollup.js:7519:18)
at /Users/ray/Desktop/Projects/graph/client/node_modules/rollup/dist/shared/rollup.js:1908:40
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description
When calling a GraphQL operation with an internal directive from a TS operation, the client falls to build.
TS Operation
GraphQL Operation
It appears that it is expecting the username to be passed through to the GraphQL operation despite it being an internal directive.
Adding an input with an empty string to match the directive works around the issue and it functions as desired:
Reproduction
The text was updated successfully, but these errors were encountered: