引入定义ts类型文件报错SyntaxError: The requested module ‘xxx‘ does not provide an export named ‘xxx‘

SyntaxError: The requested module 'xxx' does not provide an export named 'xxx'

vite映入ts定义数据类型的模块爆出处理方式

解决方法: import type { xxx } from 'xxxx'