Running code-Server - vite/react problems

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.11
What app is this about: code server

Describe your issue

Hi,
short disclaimer - I am a noob, so I humbly apologize for any wrongdoings in advance.

I am attempting to use code-server to yunohost for all the common reasons, but run into this problem when I try to run the site:

SystemError [ERR_SYSTEM_ERROR]: A system error occurred: uv_interface_addresses returned Unknown system error 97 (Unknown system error 97)

It works when I use the local ip in vite.config.js, but fails when I try to connect it to my noho.st-domain

"
import { defineConfig } from ‘vite’
import react from ‘@vitejs/plugin-react’
import tailwindcss from ‘@tailwindcss/vite’

export default defineConfig({
plugins:
[
react(),
server: {
host: ‘192.168.xxxx’,
hmr: {
clientPort: 5173,

While
server: {
host: true,
port: process.env.VITE_ASSET_PORT,
strictPort: true,
hmr: {
host: env.VITE_ASSET_HOST,
port: env.VITE_ASSET_PORT,
},
allowedHosts: ‘xxx.xxx.noho.st

does not.

I’m uncertain if this is host or app-problem, but would be interested to know if anyone else has seen this?

thanks in advance :slight_smile:
-s

Share relevant logs or error messages

~/vite-project$ npm run dev --host

vite-project@0.0.0 dev
vite

6:27:23 PM [vite] (client) Re-optimizing dependencies because vite config has changed
error when starting dev server:
SystemError [ERR_SYSTEM_ERROR]: A system error occurred: uv_interface_addresses returned Unknown system error 97 (Unknown system error 97)
at Object.networkInterfaces (node:os:277:16)
at resolveServerUrls (file:///home/xxxx/vite-project/node_modules/vite/dist/node/chunks/dep-CfG9u7Cn.js:10237:24)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.listen (file:///home/xxxxx/vite-project/node_modules/vite/dist/node/chunks/dep-CfG9u7Cn.js:43991:31)
at async CAC. (file:///home/xxxxxvite-project/node_modules/vite/dist/node/cli.js:764:5)

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.