Skip to content

Both graphql@14 and graphql@15 are installed when installing apollo. (e.g., apollo client:codegen command doesn't work properly when you run it as a script.) #2232

@bugoverdose

Description

@bugoverdose

project environment: create-react-app with typescript template
dev environment: windows10, wsl2, node(14.16.0 ver), npm(7.5.6 ver)

image

  1. When I run [apollo client:codegen src/generated_api_types --target=typescript --outputFlat], it works fine. All the interfaces are generated perfectly.

  2. But if I run the same command as [npm run apollo:codegen], it doesn't work.

  3. The same problem arises if remove the --outputFlat option, so I guess that's not the cause.

Also, I found another person with the same issue online. Can someone help me how to fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions