Error when exporting excel from xlsx: Cannot read properties of undefined (reading 'utils')

report error

Error when exporting excel from xlsx: Cannot read properties of undefined (reading 'utils')

deal with

Method 1: import XLSX from 'xlsx' to: import * as XLSX from 'xlsx'

Method 2: Lower the xlsx version, for example: npm install --save [email protected]

Guess you like

Origin blog.csdn.net/Ls66666Ls/article/details/131895634