Skip to content

[BUG][typescript-fetch] Causing an error GlobalFetch not found #10684

Closed
@krupalpatel92

Description

@krupalpatel92

Generating OpenAPI with typescript-fetch
npx openapi-generator-cli generate -i ./swagger.json -g typescript-fetch -o ./src/apis

image

Description

"openapi": "3.0.0"

openapi-generator version

image

openapitools.json
image

Steps to reproduce
  1. create-react-app with TypeScript

  2. npx openapi-generator-cli generate -i ./swagger.json -g typescript-fetch -o ./src/apis

  3. yarn start

Solution tried

But didn't worked
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions