cell-wall
cell-wall copied to clipboard
(Server) Websocket Code error (29,31) TS2345
I tried to install the software several times but it didnt worked for me. Seems (for me) like an error inside the coding, could also be missing dependencies but i just cant find the error.
Tried also fixing it but nothing worked.
System Information
OS: Linux (Debian 12) Hosted on Cloud Server to test installation
Installation step by step
apt update && apt upgrade -y
sudo apt install git -y
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
source ~/.profile
nvm ls-remote
nvm install 20.18.2
git clone https://github.com/NotWoods/cell-wall.git
cd cell-wall
npm install -g pnpm@latest-10
pnpm install
pnpm -r run build
Response
root@testing:~/cell-wall# pnpm -r run build
Scope: 5 of 7 workspace projects
javascript/client build$ vite build
[155 lines collapsed]
│ .svelte-kit/output/server/entries/pages/cell/frame/_layout.svelte.js 8.04 kB
│ .svelte-kit/output/server/chunks/internal.js 8.21 kB
│ .svelte-kit/output/server/entries/pages/remote/custom/_page.svelte.js 9.54 kB
│ .svelte-kit/output/server/entries/pages/remote/_page.svelte.js 9.71 kB
│ .svelte-kit/output/server/chunks/cell-data.js 17.02 kB
│ .svelte-kit/output/server/index.js 111.98 kB
│ ✓ built in 17.16s
│ Run npm run preview to preview your production build locally.
│ > Using @sveltejs/adapter-node
│ ✔ done
└─ Done in 22.8s
javascript/server build$ tsc --project . && node esbuild.config.js
│ src/lib/__mocks__/env.ts(1,21): error TS6305: Output file '/root/cell-wall/javascript/shared/src/env.mocks.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/env.mocks.ts'.
│ src/lib/cells/state.ts(1,32): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.ts'.
│ src/lib/env.ts(1,30): error TS6305: Output file '/root/cell-wall/javascript/shared/src/env.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/env.ts'.
│ src/lib/image/__tests__/split.spec.ts(1,44): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index…
│ src/lib/image/cache.ts(1,44): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.ts'.
│ src/lib/image/manipulate.ts(1,55): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.ts'.
│ src/lib/image/split.ts(1,44): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.ts'.
│ src/lib/image/split.ts(2,39): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.ts'.
│ src/lib/map/__tests__/delay.spec.ts(1,27): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.t…
│ src/lib/map/delay.ts(1,32): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.ts'.
│ src/lib/repository/__tests__/combine-cell.spec.ts(1,59): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shar…
│ src/lib/repository/__tests__/combine-cell.spec.ts(4,40): error TS6305: Output file '/root/cell-wall/javascript/android-device-manager/src/index.d.ts' has not been built from source file '/root/cell-wall…
│ src/lib/repository/combine-cell.ts(1,68): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.ts…
│ src/lib/repository/combine-cell.ts(2,28): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.ts…
│ src/lib/repository/combine-cell.ts(4,40): error TS6305: Output file '/root/cell-wall/javascript/android-device-manager/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/and…
│ src/lib/repository/database.ts(1,31): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.ts'.
│ src/lib/repository/interface.ts(1,41): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.ts'.
│ src/lib/repository/interface.ts(7,8): error TS6305: Output file '/root/cell-wall/javascript/android-device-manager/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/android…
│ src/lib/repository/known.ts(1,31): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.ts'.
│ src/lib/repository/repository.ts(1,31): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.ts'.
│ src/lib/repository/repository.ts(3,51): error TS6305: Output file '/root/cell-wall/javascript/android-device-manager/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/andro…
│ src/lib/repository/repository.ts(84,41): error TS7006: Parameter 'oldSet' implicitly has an 'any' type.
│ src/lib/repository/socket-store.ts(1,31): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.ts…
│ src/lib/repository/state-log.ts(1,31): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.ts'.
│ src/lib/repository/state-log.ts(3,40): error TS6305: Output file '/root/cell-wall/javascript/android-device-manager/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/androi…
│ src/lib/text/__tests__/distrubute.spec.ts(1,31): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/i…
│ src/lib/text/__tests__/sort.spec.ts(1,31): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.t…
│ src/lib/text/distribute.ts(1,31): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.ts'.
│ src/lib/text/info-store.ts(1,41): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.ts'.
│ src/lib/text/sort.ts(1,52): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.ts'.
│ src/routes/api/action/_remaining.ts(1,28): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.t…
│ src/routes/api/action/image.ts(5,8): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.ts'.
│ src/routes/api/action/refresh.ts(1,31): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.ts'.
│ src/routes/api/action/text.ts(1,60): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.ts'.
│ src/routes/api/device/index.ts(1,31): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.ts'.
│ src/routes/api/device/info.ts(1,47): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.ts'.
│ src/routes/api/device/info.ts(91,13): error TS18046: 'body' is of type 'unknown'.
│ src/routes/api/device/info.ts(92,13): error TS18046: 'body' is of type 'unknown'.
│ src/routes/api/device/info.ts(93,17): error TS18046: 'body' is of type 'unknown'.
│ src/routes/api/device/info.ts(94,12): error TS18046: 'body' is of type 'unknown'.
│ src/routes/api/device/info.ts(95,13): error TS18046: 'body' is of type 'unknown'.
│ src/routes/api/device/info.ts(96,8): error TS18046: 'body' is of type 'unknown'.
│ src/routes/api/device/info.ts(97,8): error TS18046: 'body' is of type 'unknown'.
│ src/routes/api/device/power.ts(4,29): error TS6305: Output file '/root/cell-wall/javascript/android-device-manager/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/android…
│ src/routes/api/device/power.ts(53,75): error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'ReadonlySet<string>'.
│ src/routes/api/device/power.ts(106,22): error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'ReadonlySet<string>'.
│ src/routes/api/device/preset.ts(1,32): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.ts'.
│ src/routes/api/device/state-array.ts(1,32): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.…
│ src/routes/api/device/state.ts(1,60): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.ts'.
│ src/websocket.ts(1,59): error TS6305: Output file '/root/cell-wall/javascript/shared/src/index.d.ts' has not been built from source file '/root/cell-wall/javascript/shared/src/index.ts'.
│ src/websocket.ts(29,31): error TS2345: Argument of type '{ url: URL; }' is not assignable to parameter of type 'WebSocketInfo'.
│ Type '{ url: URL; }' is missing the following properties from type 'WebSocketInfo': width, height
└─ Failed in 12s at /root/cell-wall/javascript/server
/root/cell-wall/javascript/server:
ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL @cell-wall/[email protected] build: `tsc --project . && node esbuild.config.js`
Exit status 2