protobi/js-xlsx

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

luizotavioautomacao opened this issue · 3 comments

ERROR CORRECT

Originally posted by @munjal-vandana in #154 (comment)

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

You can see my resolve way -> #159 (comment)

please npm i real-style-xlsx

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;