Follow-up from the following issue here. I seem to get INVALID_ARG_TYPE thrown when using a simple Bun.serve script on Ubuntu/Linux.
Code:
Bun.serve({
port: 3000,
async fetch(req: Request) {
return new Response("Hello World");
}
})
Error:
root@ubuntu-server:~/Testing# bun run index.ts
1 | Bun.serve({
port: 3000,
async fetch(req) {
return new Response("Hello World");
}
});
^
TypeError: 湕捩摯潨瑳慮敭畭瑳愠牬慥祤戠湥潣敤潦潮渊睥唠䱒椨灮瑵⸩潨瑳慮敭猠潨汵潤琠敨琠楲正.湉整湲污挠湯楳瑳湥祣攠牲牯›慷捴敨畭整⁸獩氠捯敫桷湥椠⁴桳畯摬渠瑯戠䤀呎㐶呟彏半䅖啌⡅半
code: "ERR_INVALID_ARG_TYPE"
at À Àsting/index.ts:1:0