Both operating systems run Deno v1.44.4.
deno compile --output ../release/cobble --allow-env --allow-net --allow-read --allow-write --allow-run ../backend/server.ts && cd ../release/ && zip -r ../cobblequarry.zip *"
Linux x86 yields the following error:
Check file:///home/codepleb/cobble-quarry/backend/server.ts
error: TS2339 [ERROR]: Property 'text' does not exist on type '{ (options: BodyOptions<"bytes">): BodyBytes; (options: BodyOptions<"form">): BodyForm; (options: BodyOptions<"form-data">): BodyFormData; (options: BodyOptions<...>): BodyJson; (options: BodyOptions<...>): BodyReader; (options: BodyOptions<...>): BodyStream; (options: BodyOptions<...>): BodyText; (options?: BodyOpt...'.
let command: string = await ctx.request.body.text();
~~~~
at file:///home/codepleb/cobble-quarry/backend/server.ts:124:52
On macOS, this compiles fine! The previous option (that would probably compile on linux, as it did before) didn’t compile on macOS.
I don’t know if this is a typescript issue, but the versions deno uses naturally are also the same (5.4.5)!
Repo: https://github.com/raphaellueckl/cobble-quarry/