安装xlsx-style报错./cptable in ./node_modules/xlsx-style@0.8.13@xlsx-style/dist/cpexcel.js
安装xlsx-style报错./cptable in ./node_modules/xlsx-style@0.8.13@xlsx-style/dist/cpexcel.js方案1:修改源码在\node_modules\xlsx-style\dist\cpexcel.js 807行把var cpt = require(’./cpt’ + ‘able’);修改成var cpt = cptable;方案
·
安装xlsx-style报错./cptable in ./node_modules/xlsx-style@0.8.13@xlsx-style/dist/cpexcel.js
方案1:修改源码
在\node_modules\xlsx-style\dist\cpexcel.js 807行
把var cpt = require(’./cpt’ + ‘able’);修改成var cpt = cptable;
方案2
在vue.config.js下
module.exports = {
configureWebpack(){
return{
externals: [ {
'./cptable': 'var cptable'
}]
}
}
}
更多推荐
已为社区贡献1条内容
所有评论(0)