protobi / js-xlsx

XLSX / XLSM / XLSB (Excel 2007+ Spreadsheet) / ODS parser and writer
http://oss.sheetjs.com/js-xlsx
Other
833 stars 416 forks source link

Problem in importing #93

Closed dstvishnu closed 6 years ago

dstvishnu commented 6 years ago

79 i tried to import xlsx-style i am getting the following error

ERROR in ./~/xlsx-style/dist/cpexcel.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./cptable in C:\Users\ExportToExcel\node_modules\xlsx-style\dist
 @ ./~/xlsx-style/dist/cpexcel.js 807:16-41

Is there is any possible solution?

pietersv commented 6 years ago

@dstvishnu How are you importing the code? Are you referencing xlsx.full.min.js? I believe that should have key dependencies included

pietersv commented 6 years ago

Duplicate of https://github.com/protobi/js-xlsx/issues/92?

dstvishnu commented 6 years ago

@pietersv i changed the webpack configiration to exclude the cpexcel.js odc.js.After that i am not facing any issue