vue-xlsx icon indicating copy to clipboard operation
vue-xlsx copied to clipboard

XLSX is not recognized

Open joaomede opened this issue 5 years ago • 6 comments

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

joaomede avatar Oct 09 '20 13:10 joaomede

@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

nmezzopera avatar Oct 10 '20 14:10 nmezzopera

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.

joaomede avatar Oct 10 '20 20:10 joaomede

@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

nmezzopera avatar Oct 11 '20 09:10 nmezzopera

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

dtilhoo avatar May 13 '21 15:05 dtilhoo

run npm install --save xlsx

bishoySouser avatar Jun 21 '22 08:06 bishoySouser

it would be very useful to show it in the Documentation

R0sH4v1 avatar Aug 09 '22 13:08 R0sH4v1