Join Nostr
2025-11-06 23:07:06 UTC
in reply to

Stuart Longland (VK4MSL) on Nostr: ``` Building with Vite ⚡ You are using Node.js 20.5.1. Vite requires Node.js ...

```
Building with Vite ⚡
You are using Node.js 20.5.1. Vite requires Node.js version 20.19+ or 22.12+. Please upgrade your Node.js version.
failed to load config from /home/mastodon/live/vite.config.mts
error during build:
TypeError: crypto.hash is not a function
at file:///home/mastodon/live/node_modules/@vitejs/plugin-legacy/dist/index.js:584:21
at Array.map (<anonymous>)
at file:///home/mastodon/live/node_modules/@vitejs/plugin-legacy/dist/index.js:584:3
at ModuleJob.run (node:internal/modules/esm/module_job:192:25)
at async DefaultModuleLoader.import (node:internal/modules/esm/loader:228:24)
at async loadConfigFromBundledFile (file:///home/mastodon/live/node_modules/vite/dist/node/chunks/config.js:36128:12)
at async bundleAndLoadConfigFile (file:///home/mastodon/live/node_modules/vite/dist/node/chunks/config.js:36014:17)
at async loadConfigFromFile (file:///home/mastodon/live/node_modules/vite/dist/node/chunks/config.js:35981:42)
at async resolveConfig (file:///home/mastodon/live/node_modules/vite/dist/node/chunks/config.js:35632:22)
at async createBuilder (file:///home/mastodon/live/node_modules/vite/dist/node/chunks/config.js:34104:19)

pid 2145854 exit 1
Build with Vite failed! ❌
```
… bugger.