`Why I installed js-xlsx, there is no json_to_sheet method after import import XLSX from 'js-xlsx' export default { downloadExl(json, fileName, type = undefined) { console.log(XLSX) console.log(XLSX.utils.json_to_sheet(json)) //error utils no json_to_sheet } }
"dependencies": {
"js-xlsx": "^0.8.22",
"xlsx": "^0.18.5",
}
`
`Why I installed js-xlsx, there is no json_to_sheet method after import![XLSX print](https://user-images.githubusercontent.com/28476083/164155015-2b8a43ce-5d31-4455-b4c4-3e8ccd51bd3d.png)
import XLSX from 'js-xlsx' export default { downloadExl(json, fileName, type = undefined) { console.log(XLSX) console.log(XLSX.utils.json_to_sheet(json)) //error utils no json_to_sheet } }
"dependencies": { "js-xlsx": "^0.8.22", "xlsx": "^0.18.5", } `