xlsx导出excel时报错:Cannot read properties of undefined (reading ‘utils‘)

报错

xlsx导出excel时报错:Cannot read properties of undefined (reading ‘utils’)

处理

方法一:import XLSX from ‘xlsx’ 改为:import * as XLSX from ‘xlsx’

方法二:降低xlsx版本,例如:npm install --save [email protected]

你可能感兴趣的:(#,vue报错处理,excel)