EdisonJpp / react-export-table-to-excel

It allows you to export an HTML table just by sending the table reference and the name with which you want the file to be saved. It gives you two options; a hook and a component ... you use whichever one best suits your goal
41 stars 12 forks source link

Module not found: Error: Can't resolve 'react-export-table-to-excel' #3

Closed tdammy92 closed 2 years ago

tdammy92 commented 2 years ago

This is my first time using this package, after installion and importing the package i get this error

Module not found: Error: Can't resolve 'react-export-table-to-excel' in 'E:\DevProjects\Projects\Web\acs project\acs-logistcs\src\pages\All-Shippment'

I checked the node module the package is installed..

sarahPioline commented 2 years ago

same here

tdammy92 commented 2 years ago

same here

which alternative did you use..?

sarahPioline commented 2 years ago

I export my data with the package xlsx ( https://blog.bitsrc.io/exporting-data-to-excel-with-react-6943d7775a92 )

tdammy92 commented 2 years ago

I export my data with the package xlsx ( https://blog.bitsrc.io/exporting-data-to-excel-with-react-6943d7775a92 )

ok thank you, would read on it.

jverlee commented 2 years ago

same issue here

targerian commented 2 years ago

same here

EdisonJpp commented 2 years ago

Cheers,

in version 1.0.6 this error was fixed;

We add another method that is used to export the excel only sending the header and body.

we add usage examples in both next.js and react.js

samples; React.js: https://codesandbox.io/s/react-export-table-to-excel-sample-dvzkms Next.js: https://codesandbox.io/s/react-export-table-to-excel-next-js-yzl74q

you can check in the repository (repo )