You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ReferenceError: TextEncoder is not defined in axios >= 1.3.0 #5529
You are probably using node.js older than v11.0.0 while we officially support v12 and above. Is this the only problem? Does Axios 1.2.x work on your platform?
Activity
DigitalBrainJS commentedon Feb 3, 2023
You are probably using node.js older than
v11.0.0while we officially support v12 and above.Is this the only problem? Does Axios 1.2.x work on your platform?JanHamara commentedon Feb 3, 2023
Using Node v18.13.0 and having the same issue.
DigitalBrainJS commentedon Feb 3, 2023
@JanHamara Just tested on 18.12.1
rahulthedevil commentedon Feb 3, 2023
v18.12.1
1.3.1 {
args: {},
data: '',
files: {},
form: { foo: 'bar' },
headers: {
Accept: 'application/json, text/plain, /',
'Accept-Encoding': 'gzip, compress, deflate, br',
'Content-Length': '155',
'Content-Type': 'multipart/form-data; boundary=axios-1.3.1-boundary-_BWIpm1l0Kgn5YVfdMQy6Rw8f',
Host: 'httpbin.org',
'User-Agent': 'axios/1.3.1',
'X-Amzn-Trace-Id': 'Root=1-63dd3572-36d82a1762ca21e200dda896'
},
json: null,
origin: '49.207.194.31',
url: 'http://httpbin.org/post'
}
Working fine in 1.3.1 also @JanHamara
irfandyj commentedon Oct 27, 2023
Hi, I'm using axios 1.5.1 with node version v18.16.0 and still have the issue.
irfandyj commentedon Oct 27, 2023
Guys, turns out it fails if you use
yarn, I tried reinstalling withnpmand it works.boldwade commentedon Jun 13, 2024
I have the same problem when using Vite version 5. Vite 4.5.3 works. 🤷♂️
I looked at patching the export, but... meh..
dippas commentedon Aug 14, 2024
this issue was introduce back in v1.7.0