關(guān)于解決webstorm中export 'default' (imported as 'Export2Excel') was not found in?‘../../../vendor/Export2Excel’警告的問題

export 'default' (imported as 'Export2Excel') was not found in?‘../../../vendor/Export2Excel’
在引入blob.js和Export2Excel.js文件后,發(fā)現(xiàn)控制臺會彈出這種warning。在百度上搜了好久,找了好多方法。都沒有找到。

create class export2excel
根據(jù)提示的錯誤。在export2excel.js中創(chuàng)建export default class Export2Excel {}

export default class Export2Excel {}
添加完成后保存。

解決成功
點擊導(dǎo)出按鈕,成功下載表格

成功可以下載
希望此文章能幫助別人,大牛勿噴~