ardeois / graphql-codegen-typescript-mock-data

[GraphQL Codegen Plugin](https://github.com/dotansimha/graphql-code-generator) for building mock data based on the schema.
MIT License
134 stars 46 forks source link

"embeddedGenerator is not a function" with v4.1.0 #172

Open sregg opened 1 month ago

sregg commented 1 month ago

I just added the plugin like so: plugins: [ 'typescript-mock-data' ] and got this error when running graphql-codegen:

✔ Parse Configuration
⚠ Generate outputs
  ✔ Generate to ./src/@generated/graphql/schema.graphql
  ✔ Generate to ./src/@generated/graphql/index.ts
  ❯ Generate to ./src
    ✔ Load GraphQL schemas
    ✔ Load GraphQL documents
    ✖ embeddedGenerator is not a function
ardeois commented 1 month ago

@sregg I've tried locally and it works for me, so are you able to provide a basic project for reproduction?