rm -rf node_modules
npm install
Run Vite Build with Debug: Run Vite build with the debug flag to get more detailed logs.
DEBUG=vite:* npm run build
清除缓存并重试
尝试清除构建缓存并重新构建项目:
rm -rf node_modules/.vite
npm run build
rm -rf node_modules
npm install
Run Vite Build with Debug: Run Vite build with the debug flag to get more detailed logs.
DEBUG=vite:* npm run build
尝试清除构建缓存并重新构建项目:
rm -rf node_modules/.vite
npm run build