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

XLSX is not recognized #15

Open
joaomede opened this issue Oct 9, 2020 · 6 comments
Open

XLSX is not recognized #15

joaomede opened this issue Oct 9, 2020 · 6 comments

Comments

@joaomede
Copy link

joaomede commented Oct 9, 2020

Hello everyone, first thanks for the great dependency.
I found this error when running the dependency, I noticed that the lib "XLSX" is like "devDependencies", my suggestion is to move it to "dependencies".
erro_xlsx

@DonNicoJs
Copy link
Owner

@joaomede Sorry for the delay in answering, since xlsx is a peer dependency you can simply run npm install --save xlsx to fix the issue

@joaomede
Copy link
Author

Hello @DonNicoJs, I think that if this package needs this dependency, it should be in her package.json, and not in my project's package.

@DonNicoJs
Copy link
Owner

@joaomede I understand the confusion, but please check this explanation on stack overflow: https://stackoverflow.com/questions/26737819/why-use-peer-dependencies-in-npm-for-plugins

@dtilhoo
Copy link

dtilhoo commented May 13, 2021

what path should i put to import XlsxRead, XlsxSheets components?

@bishoySouser
Copy link

run npm install --save xlsx

@R0sH4v1
Copy link

R0sH4v1 commented Aug 9, 2022

it would be very useful to show it in the Documentation

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

5 participants