-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
v1.7.0 release bug #6409
Comments
I have the same issue. |
+1 ( |
My app is crashing now because of this error. downgrading didn't help the error in line 20 |
Tests are not working right now |
Hi, I have found out why: https://github.com/axios/axios/blob/v1.x/lib/helpers/trackStream.js#L20 the TextEncoder class is not defined here and we would need to find an instance of it somewhere. I would like to ask if the maintainers can propose a fix to this as it is breaking our pipeline here else, I would gladly propose a kind fix that has been causing this long term issue? |
how can I solve this? |
Change package.json file with "axios": "1.6.8" Without ^ |
it's working!! thank you 😊 |
The error To fix this error in for example Jest, you can add a polyfill for Method 1: Polyfill Using
|
for me it's not Jest. |
Not a jest problem, nor a node problem. But rather a jsdom test environment problem. |
Describe the bug
After upgrade to 1.7.0 from 1.6.8
ReferenceError: TextEncoder is not defined
error happens
To Reproduce
upgrade to axios 1.7.0
Expected behavior
no error happen
Axios Version
1.7.0
Adapter Version
xhr
Node.js Version
20.13.1
The text was updated successfully, but these errors were encountered: