I am using deno for the first time and The system cannot find the path specified. (os error 3)
is the error I am getting. My code below:-
import { Application } from 'https://deno.land/x/oak/mod.ts'
const app = new Application();
const port = 3000;
app.use((ctx) => {
ctx.response.body = "Hello World"
})
app.listen({ port })
console.log(`localhost:${port}`)
I am using deno run --allow-net .\server.js
on powershell to start deno. Any help would be appreciated.
EDIT: If I try to do a simple console.log and run the file with deno run server.js
it runs fine which mean that the deno environment is setup correctly. As soon as I add the import statement at the top, the error starts happening.
deno --version
give you? – Frosted1.0.3
– Load