protobi / js-xlsx

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

ERROR CORRECT => module was not found: ./cptable in ./node_modules/xlsx-style@0.8.13@xlsx-style/dist/cpexcel.js #155

Open luizotavioautomacao opened 3 years ago

luizotavioautomacao commented 3 years ago

ERROR CORRECT

Originally posted by @munjal-vandana in https://github.com/protobi/js-xlsx/issues/154#issuecomment-757911213

https://github.com/luizotavioautomacao/xlsx-style-correct npm i xlsx-style-correct

Or

Edit the file: node_modules > xlsx-style > dist > cpexcel.js change line 807 => var cpt = cptable; But, always that you make npm install in your project you need to change

RexHung0302 commented 2 years ago

You can see my resolve way -> https://github.com/protobi/js-xlsx/issues/159#issue-955212760

reai99 commented 2 years ago

please npm i real-style-xlsx

ycy1621260121 commented 1 year ago

npm install xlsx-style-hzx 1、cpexcel.js 的807行 var cpt = require('./cpt' + 'able') 改为 var cpt = require('./cpexcel'); 2、xlsx.js中var current_codepage = 1200, current_cptable;加上一个cptable;即var current_codepage = 1200, current_cptable, cptable;