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
> @whook/graphql@10.0.3 build
> rimraf -f 'dist' && tsc --outDir dist
Error: ../../node_modules/apollo-server-core/dist/types.d.ts(3,50): error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("@graphql-tools/schema")' call instead.
lerna ERR! npm run build exited 2 in '@whook/graphql'
lerna WARN complete Waiting for 2 child processes to exit. CTRL-C to exit immediately.
Error: Process completed with exit code 2.
The build is broken since TypeScript 4.8:
Full logs: https://github.com/nfroidure/whook/runs/8152053130?check_suite_focus=true
Temporary adding:
import type { IMocks } from '@graphql-tools/mock'; + // @ts-ignore import type { IExecutableSchemaDefinition } from '@graphql-tools/schema';
Fixes the build, issue reported here: apollographql/apollo-server#6868 (comment)
The text was updated successfully, but these errors were encountered: