遇到这个错误 把第一个
import jwt_decode from 'jwt-decode'
改成
import * as jwt_decode from 'jwt-decode';
原因分析:
引入的库没有使用export default
来导出,而是直接使用export
导出一些属性和方法,自然无法使用
参考:SntaxError: The requested module ‘/node_modules/.vite/deps/xlsx.js?v=3067d777‘ does not provide an e_main.ts:19 syntaxerror: the requested module '/nod-CSDN博客