Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find name 'HeadersInit'. #1735

Open
1 task
kms0219kms opened this issue Jun 26, 2024 · 1 comment
Open
1 task

Cannot find name 'HeadersInit'. #1735

kms0219kms opened this issue Jun 26, 2024 · 1 comment
Labels
bug Something isn't working openapi-fetch Relevant to the openapi-fetch library

Comments

@kms0219kms
Copy link

kms0219kms commented Jun 26, 2024

Description

node_modules/.pnpm/[email protected]/node_modules/openapi-fetch/dist/index.d.ts:27:5 - error TS2304: Cannot find name 'HeadersInit'.

27   | HeadersInit
       ~~~~~~~~~~~


Found 1 error in node_modules/.pnpm/[email protected]/node_modules/openapi-fetch/dist/index.d.ts:27

 ELIFECYCLE  Command failed with exit code 1.
node:internal/modules/cjs/loader:1215
  throw err;
  ^

Reproduction

You can just write the code that simply request path using openapi-fetch, and try compile it using tsc to reproduction.

Expected result

Build successfully w/o any exceptions

Checklist

@kms0219kms kms0219kms added bug Something isn't working openapi-fetch Relevant to the openapi-fetch library labels Jun 26, 2024
@phk422
Copy link
Contributor

phk422 commented Jun 27, 2024

Description

node_modules/.pnpm/[email protected]/node_modules/openapi-fetch/dist/index.d.ts:27:5 - error TS2304: Cannot find name 'HeadersInit'.

27   | HeadersInit
       ~~~~~~~~~~~


Found 1 error in node_modules/.pnpm/[email protected]/node_modules/openapi-fetch/dist/index.d.ts:27

 ELIFECYCLE  Command failed with exit code 1.
node:internal/modules/cjs/loader:1215
  throw err;
  ^

Reproduction

You can just write the code that simply request path using openapi-fetch, and try compile it using tsc to reproduction.

Expected result

Build successfully w/o any exceptions

Checklist

I wrote a case, but this did not happen, can you provide a detailed case of repetition? And your version of node,typescript...
Also, HeadersInit is built-in, and I'm guessing there are some issues with your typescript configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working openapi-fetch Relevant to the openapi-fetch library
Projects
None yet
Development

No branches or pull requests

2 participants