Skip to content
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

You may need an appropriate loader to handle this file type. | this._workbook = this._read(binary, { #4

Open
cnqiuxue opened this issue Jun 18, 2019 · 10 comments

Comments

@cnqiuxue
Copy link

cnqiuxue commented Jun 18, 2019

···
image
···
···
"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
},

···

@DonNicoJs
Copy link
Owner

@cnqiuxue I can't reproduce the issue sadly, can you create a small codesanbox / codepen with the issue reproduced ?

@cnqiuxue
Copy link
Author

@cnqiuxue
Copy link
Author

@DonNicoJs Hey, do you have a good solution?

@pumano
Copy link

pumano commented Jul 24, 2019

@cnqiuxue try to just import { XlsxRead, XlsxSheets, XlsxTable, XlsxJson } from "vue-xlsx";

@GonzaloGPF
Copy link

I'm having the same issue... I just imported that and installed xlsx with npm install --save xlsx but still same error

@pumano
Copy link

pumano commented Aug 13, 2019

@GonzaloGPF try to double check import, as I mentioned before

@gotexis
Copy link

gotexis commented Oct 28, 2020

+1

@uskaishiga
Copy link

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.

@Sohail-purelogics
Copy link

Is there any solution for that error?

@cnqiuxue
Copy link
Author

cnqiuxue commented Apr 12, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants