Skip to content

Update to vite 6.0.0 breaks vite build

When upgrading vite to version 6.0.0 the vite build will fail with the following error in a pipeline when the vite tools are used:

error during build:
[@open-xchange/vite-plugin-ox-manifests] Invalid value used as weak map key
    at WeakMap.set (<anonymous>)
    at file:///app/node_modules/.pnpm/vite@6.0.0_@types+node@22.9.3_sass@1.81.0_yaml@2.6.1/node_modules/vite/dist/node/chunks/dep-C6qYk3zB.js:7367:16
    at Object.buildStart (file:///app/node_modules/.pnpm/vite@6.0.0_@types+node@22.9.3_sass@1.81.0_yaml@2.6.1/node_modules/vite/dist/node/chunks/dep-C6qYk3zB.js:13500:7)
    at file:///app/node_modules/.pnpm/@open-xchange+vite-plugin-ox-manifests@0.7.2_rollup@4.27.4/node_modules/@open-xchange/vite-plugin-ox-manifests/dist/plugins/manifests.js:51:53
    at file:///app/node_modules/.pnpm/@open-xchange+vite-plugin-ox-manifests@0.7.2_rollup@4.27.4/node_modules/@open-xchange/vite-plugin-ox-manifests/dist/plugins/manifests.js:53:15
    at new Promise (<anonymous>)
    at buildViteManifests (file:///app/node_modules/.pnpm/@open-xchange+vite-plugin-ox-manifests@0.7.2_rollup@4.27.4/node_modules/@open-xchange/vite-plugin-ox-manifests/dist/plugins/manifests.js:32:16)
    at Object.generateBundle (file:///app/node_modules/.pnpm/@open-xchange+vite-plugin-ox-manifests@0.7.2_rollup@4.27.4/node_modules/@open-xchange/vite-plugin-ox-manifests/dist/plugins/manifests.js:118:41)
    at Object.generateBundle (file:///app/node_modules/.pnpm/@open-xchange+vite-plugin-ox-manifests@0.7.2_rollup@4.27.4/node_modules/@open-xchange/vite-plugin-ox-manifests/dist/index.js:148:49)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
 ELIFECYCLE  Command failed with exit code 1.
error building image: error building stage: failed to execute command: waiting for process to exit: exit status 1

You can see this behavior in these pipelines: AI-Service / WebApps

Any advice or do you need to upgrade the libraries to support 6.0.0?

Edited by bjoern.koester