Appearance
vue3 + setup + ts 对 Element-plus 的 upload 上传 word 文件解析成内容展示
工具 | 版本 |
---|---|
node | v16.20.2 |
npm | 8.19.4 |
yarn | 1.22.19 |
安装
npm install mammoth
DANGER
报错信息 npm install --save uuid@latest 报错 ```npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm ERR! Cannot read properties of null (reading 'pickAlgorithm')
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\HLG\AppData\Local\npm-cache_logs\2023-12-19T07_26_56_616Z-debug-0.log```
更新 uuid
yarn add uuid@latest
重新安装
yarn add mammoth -d