> @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:
Fixes the build, issue reported here: https://github.com/apollographql/apollo-server/issues/6868#issuecomment-1233786862