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

ERROR CORRECT => module was not found: ./cptable in ./node_modules/[email protected]@xlsx-style/dist/cpexcel.js

Open luizotavioautomacao opened this issue 4 years ago • 3 comments

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

luizotavioautomacao avatar Jan 19 '21 21:01 luizotavioautomacao

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

RexHung0302 avatar Jul 28 '21 20:07 RexHung0302

please npm i real-style-xlsx

reai99 avatar Feb 28 '22 10:02 reai99

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;

ycy1621260121 avatar Aug 22 '22 06:08 ycy1621260121