You may need an appropriate loader to handle this file type. | this._workbook = this._read(binary, {
···
···
···
"dependencies": {
"@packy-tang/vue-tinymce": "^0.1.5",
"async-validator": "^1.7.1",
"axios": "0.16.2",
"deepmerge": "^1.5.0",
"echarts": "^4.2.1",
"form-create": "^1.6.2",
"iview": "^3.3.3",
"jquery": "3.1.1",
"js-cookie": "2.1.4",
"mavon-editor": "^2.2.4",
"mockjs": "1.0.1-beta3",
"normalize.css": "3.0.2",
"nprogress": "0.2.0",
"popper.js": "^0.6.4",
"v-viewer": "^1.4.1",
"vue": "^2.5.11",
"vue-2-img": "0.0.3",
"vue-baidu-map": "^0.21.18",
"vue-echarts": "^4.0.3",
"vue-g6-editor": "^0.2.0",
"vue-json-tree-view": "^2.0.7",
"vue-pdf": "^4.0.6",
"vue-router": "2.5.3",
"vue-xlsx": "^0.2.1",
"vuex": "2.3.1",
"wangeditor": "^3.1.1",
"xlsx": "^0.14.3"
},
···
··· import { XlsxRead, XlsxSheets, XlsxTable, XlsxJson } from "vue-xlsx/dist/vue-xlsx.es";
components: {
XlsxRead,
XlsxSheets,
XlsxTable,
XlsxJson
},
···
@cnqiuxue I can't reproduce the issue sadly, can you create a small codesanbox / codepen with the issue reproduced ?
@DonNicoJs https://github.com/cnqiuxue/text_123456
@DonNicoJs Hey, do you have a good solution?
@cnqiuxue try to just import { XlsxRead, XlsxSheets, XlsxTable, XlsxJson } from "vue-xlsx";
I'm having the same issue... I just imported that and installed xlsx with npm install --save xlsx but still same error
@GonzaloGPF try to double check import, as I mentioned before
+1
Hi, I know this may not solve the problem you had just about from 2019 but I fixed this problem by going to vue-xlsx/dist/vue-xlsx.es.js and commeting out line 5 that says: export { default as XlsxRead } from "./components/XlsxRead"; In my case I'm trying to export so I left it here in case someone else who's trying to export needs it. I hope there can be an update soon to solve this.
Is there any solution for that error?
这是来自QQ邮箱的假期自动回复邮件。 您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。