unocss / unocss

The instant on-demand atomic CSS engine.
https://unocss.dev
MIT License
16.74k stars 842 forks source link

vite5 build error in jenkins(@unocss/vite/dist/index.cjs:110:5 ) #3504

Closed zxuanhong closed 10 months ago

zxuanhong commented 10 months ago

UnoCSS version

0.58.3(node js v20.11.0)

Describe the bug

  1. building error in Jenkins, vite is using 5.0. login info:
    @anyi/webeezeebe:build: Error: deprecation warning
    @anyi/webeezeebe:build:     at deprecationCheck (/var/jenkins_home/workspace/anyi-zeebe-web/node_modules/.pnpm/@unocss+vite@0.58.3_rollup@4.9.4_vite@5.0.11/node_modules/@unocss/vite/dist/index.cjs:86:11)
    @anyi/webeezeebe:build:     at reloadConfig (/var/jenkins_home/workspace/anyi-zeebe-web/node_modules/.pnpm/@unocss+vite@0.58.3_rollup@4.9.4_vite@5.0.11/node_modules/@unocss/vite/dist/index.cjs:110:5)
    @anyi/webeezeebe:build:  ELIFECYCLE  Command failed with exit code 1.

Reproduction

  1. Create a Vue project and use version 5.0.11 of Vite(UnoCSS 0.58.3)
  2. Create a free project in Jenkins and run the compile command pnpm run build

System Info

No response

Validations

akinoccc commented 3 weeks ago

Hi, how did you fix it?