Mohammed
Mohammed
Explore posts from servers
HHono
Created by Mohammed on 5/9/2025 in #help
Can't get serveStatic to work with `root`
I'm a bit confused here: app.use("/static/*", serverStatic({ root: "./static"})) can't resolve /static/myscript.js But app.use("/myscript", serveStatic({ path: "./static/assets/myscript.js"}) does work when accessing /myscript Folder structure is: - src - static - assets - myscript.js
37 replies
DDeno
Created by Mohammed on 3/22/2025 in #help
Confusing linting
Getting the following warning: deno-ts: This member must have an 'override' modifier because it overrides a member in the base class 'the class name' Then I add the override: deno-ts: This member cannot have an 'override' modifier because it's containing class 'the class name' does not extend another class No idea what to do here. I'm definitely overriding methods so the first warning should be correct
3 replies
DDeno
Created by Mohammed on 9/29/2024 in #help
How to specify unstable fmt options?
I'm a bit confused where to specify these options? I wasn't able to trigger any autocomplete suggestions. Should it go into fmt.unstable.component or into unstable directly? Or somewhere else?
7 replies
TtRPC
Created by Mohammed on 9/11/2024 in #❓-help
Using duplex stream as transport?
I'm using a framework that gives me a node duplex stream for communication between front and back end. Can I somehow wrap that stream with tRPC?
13 replies