Mohammed
Explore posts from serversCan'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.js37 replies
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 correct3 replies