-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
请求帮助,传统项目直接在浏览器里引用这个为什么报错 #2724
Comments
用这个 https://cdn.jsdelivr.net/npm/[email protected]/dist/exceljs.min.js |
确实不错,可我的是内网项目,无法访问外网,所以静态资源必须放在项目内部。 |
浏览器里面哪里来的 |
fs确实是nodejs才有的,题主引用错了文件,exceljs.js是nodejs端用的,exceljs.min.js才是浏览器端用的。 |
引用了这个 https://cdn.jsdelivr.net/npm/[email protected]/dist/exceljs.js , 报错如下,请求帮助
TypeError: fs.createWriteStream is not a function
at XLSX.writeFile (excel.min.js:16156:59)
at wn.showCacheInfo (manager.js:100:22)
at He (vue.min.2.6.12.js:6:11384)
at a.n (vue.min.2.6.12.js:6:13168)
at He (vue.min.2.6.12.js:6:11384)
at e.$emit (vue.min.2.6.12.js:6:34373)
at a.handleClick (index.js:1:125669)
at He (vue.min.2.6.12.js:6:11384)
at HTMLButtonElement.n (vue.min.2.6.12.js:6:13168)
The text was updated successfully, but these errors were encountered: