switch-lan-play icon indicating copy to clipboard operation
switch-lan-play copied to clipboard

npm build error when build on my ubuntu server

Open Vvauted opened this issue 7 months ago • 0 comments

using nodejs 22.4.0, npm 10,8.1, tsc 4.8.4

node_modules/@types/koa/index.d.ts:13:10 - error TS2305: Module '"async_hooks"' has no exported member 'AsyncLocalStorage'.

13 import { AsyncLocalStorage } from "async_hooks"; ~~~~~~~~~~~~~~~~~

src/monitor.ts:19:22 - error TS18046: 'err' is of type 'unknown'.

19 ctx.status = err.statusCode || err.status || 500 ~~~

src/monitor.ts:19:40 - error TS18046: 'err' is of type 'unknown'.

19 ctx.status = err.statusCode || err.status || 500 ~~~

src/udpserver.ts:222:38 - error TS18046: 'e' is of type 'unknown'.

222 err = Error when login: ${e.message}

And when i start the program, i cant connect to the server [ERROR] pcap_loop -1

Vvauted avatar Jul 07 '24 12:07 Vvauted