Skip to content

Build fails on Node v25.0.0 #6275

@dvtate

Description

@dvtate

📑 I have found these related issues/pull requests

Following steps in https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md and main README.md

🛡️ Security Policy

📝 Description

Building this package from source (ie - through the AUR package) fails on my machines. In the attached logs you can see a few issues:

  1. Dependency warnings
  2. Dependency vulnerabilities
  3. Vite build warnings
  4. Vite build failed

I see very similar logs with the release branch. I even tried using the instructions in the CONTRIBUTING.md file with no success.

With this being an internet-facing server, vulnerable+obsolete dependencies are pretty concerning. I'm assuming that the build failure is related to Node.js v25.0.0 but I see that the setup script downloads a pre-compiled archive, which makes me wonder if this may be a known issue.

👟 Reproduction steps

follow guide in CONTRIBUTING.md

$ git clone https://github.com/louislam/uptime-kuma
$ cd uptime-kuma
$ npm run setup
$ npm install
$ npm run ci
$ npm run build
[ build fails]
$ npm run dev
[ fails in same way ]

👀 Expected behavior

The build should not fail.

😓 Actual Behavior

Steps in https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md fail

🐻 Uptime-Kuma Version

2.0.2

💻 Operating System and Arch

Arch Linux 2025.10.28

🌐 Browser

N/A

🖥️ Deployment Environment

  • Runtime Environment:
    • Node.js: Version 25.0.0 (LTS: No)
Image

📝 Relevant log output

[tate@archbox uptime-kuma]$ npm install
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated npmlog@5.0.1: This package is no longer supported.
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated are-we-there-yet@2.0.0: This package is no longer supported.
npm warn deprecated gauge@3.0.2: This package is no longer supported.
npm warn deprecated @humanwhocodes/object-schema@1.2.1: Use @eslint/object-schema instead
npm warn deprecated lodash.get@4.4.2: This package is deprecated. Use the optional chaining (?.) operator instead.
npm warn deprecated event-to-promise@0.7.0: Use promise-toolbox/fromEvent instead
npm warn deprecated @playwright/test@1.39.0: Please update to the latest version of Playwright to test up-to-date browsers.
npm warn deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm warn deprecated @humanwhocodes/config-array@0.9.5: Use @eslint/config-array instead
npm warn deprecated npmlog@6.0.2: This package is no longer supported.
npm warn deprecated are-we-there-yet@3.0.1: This package is no longer supported.
npm warn deprecated gauge@4.0.4: This package is no longer supported.
npm warn deprecated eslint@8.14.0: This version is no longer supported. Please see https://eslint.org/version-support for other options.
npm warn deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.

added 1331 packages, and audited 1332 packages in 39s

284 packages are looking for funding
  run `npm fund` for details

5 vulnerabilities (3 moderate, 2 high)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
[tate@archbox uptime-kuma]$ npm run build

> uptime-kuma@2.0.2 build
> vite build --config ./config/vite.config.js

The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
failed to load config from /tmp/uptime-kuma/config/vite.config.js
error during build:
TypeError: localStorage.getItem is not a function
    at getTimelineLayersStateFromStorage (/tmp/uptime-kuma/node_modules/@vue/devtools-kit/dist/index.cjs:2364:30)
    at initStateFactory (/tmp/uptime-kuma/node_modules/@vue/devtools-kit/dist/index.cjs:2657:26)
    at Object.<anonymous> (/tmp/uptime-kuma/node_modules/@vue/devtools-kit/dist/index.cjs:2661:92)
    at Module._compile (node:internal/modules/cjs/loader:1759:14)
    at node:internal/modules/cjs/loader:1892:10
    at _require.extensions.<computed> [as .js] (file:///tmp/uptime-kuma/node_modules/vite/dist/node/chunks/dep-D_zLpgQd.js:66988:9)
    at Module.load (node:internal/modules/cjs/loader:1479:32)
    at Module._load (node:internal/modules/cjs/loader:1298:12)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:244:24)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions