安装 twin.macro,页面报错Uncaught TypeError: Unable to determine current node version 解决办法 1、需要安装vite-plugin-babel-macros 2、在vite.config.ts中添加 import macrosPlugin from "vite-plugin-babel-macros"; plugins: [macrosPlugin(),react()],