graphql-codegen --require tsconfig-paths/register --config ./codegen.ts
✔ Parse Configuration
⚠ Generate outputs
❯ Generate to frontend/src/app/shared/__generated__
✔ Load GraphQL schemas
✔ Load GraphQL documents
✖
Unable to load template plugin matching 'apollo-angular'.
Reason:
require() of ES Module ....node_modules/apollo-angular/fesm2022/ngApollo.mjs not supported.
Instead change the require of ....node_modules/apollo-angular/fesm2022/ngApollo.mjs to a dynamic import() which is available in all CommonJS modules.
Describe the bug
Using the following codegen.ts I get the following error in my Angular 17 project.
Environment:
Additional context
tsconfig: