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

import not working #5

Open
ZalgirisKaunas opened this issue Aug 27, 2019 · 3 comments
Open

import not working #5

ZalgirisKaunas opened this issue Aug 27, 2019 · 3 comments

Comments

@ZalgirisKaunas
Copy link

I'm just copying the code from the examples and I get error on import statment saying:

Unable to resolve path to module in '../../dist/vue-xlsx.es.js'

@DonNicoJs
Copy link
Owner

@ZalgirisKaunas the examples are a bit misleading, just replace dist/vue-xlsx with vue-xlsx

@eLvErDe
Copy link

eLvErDe commented Sep 18, 2019

Hello,

I can confirm the import are not working. Trying to import it in a Nuxt project with no succes...
I had to do:

import { XlsxWorkbook, XlsxSheet, XlsxDownload } from 'vue-xlsx'

Also I had to install xlsx package with npm, is that a missing dependency ?

@eLvErDe
Copy link

eLvErDe commented Sep 18, 2019

Can you explain me how I can access to json_to_sheet method ?

Thx

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

3 participants