Skip to content

Type Error: response2.headers.all is not a function #1884

Answered by harrinsonmb
markgeorgebg asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @markgeorgebg,

I was having the same problem and noticed that the .all() method was removed from headers-polyfill [since version 3.3.0](https://github.com/mswjs/headers-polyfill/releases/tag/ v3.3.0 ). So I decided to install an older version as a development dependency and it seems to work fine now.

npm i headers-polyfill@3.2.5 -D

I hope it works for you too.

Greetings!

Replies: 2 comments 1 reply

Comment options

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

Answer selected by markgeorgebg
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants