Skip to content

Not able to read request headers in API middleware.ts #44905

Answered by dmudro
dmudro asked this question in Help
Discussion options

You must be logged in to vote

issue found: tsconfig.json was lacking dom in the compilerOptions.lib array. probably related to Request object / type.

// tsconfig.json
{
  "compilerOptions": {
    "lib": ["dom", "dom.iterable", "esnext"],
...

Replies: 3 suggested answers 6 replies

Comment options

You must be logged in to vote
5 replies
@dmudro
Comment options

@icyJoseph
Comment options

@dmudro
Comment options

@icyJoseph
Comment options

@dmudro
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@icyJoseph
Comment options

Answer selected by dmudro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants