Closed crazyair closed 3 months ago
latest
mac
chrome
https://github.com/crazyair/dumi-test/tree/codesandbox
打开 http://localhost:8001/guide
不报错
TypeError: util.TextEncoder is not a constructor
No response
@Jinbao1001 cc
遇到同样的问题,该问题 再 2.3.x 出现的,2.2.x没有问题 似乎是模块路径解析的不对,应该导入的是 axios/dist/browser/axios.cjs 但导入了axios/dist/node/axios.cjs
closed #2187
Version
latest
OS Version
mac
Node.js Version
latest
Browser Version
chrome
Link to minimal reproduction
https://github.com/crazyair/dumi-test/tree/codesandbox
Steps to reproduce
打开 http://localhost:8001/guide
What is expected?
不报错
What is actually happening?
TypeError: util.TextEncoder is not a constructor
Any additional comments? (optional)
No response