DenoDDeno
Powered by
πŸŽ€π”Έβ„•π”Ύπ”Όπ•ƒ π”»π•†π•ƒπ•ƒπ”½π”Έβ„‚π”ΌπŸŽ€πŸ‡΅πŸ‡ΈοΏ½
Denoβ€’2y agoβ€’
9 replies
πŸŽ€π”Έβ„•π”Ύπ”Όπ•ƒ π”»π•†π•ƒπ•ƒπ”½π”Έβ„‚π”ΌπŸŽ€πŸ‡΅πŸ‡Έ

Trouble with serving HTMl on localhost

Hi, so I'm building a framework for SSR and I'm struggling with the following:

When I clone my repo and run my example app with
deno run --allow-net example.ts
deno run --allow-net example.ts
, and I open up any pages on
localhost:8080/page{0-4}
localhost:8080/page{0-4}
, I see a blank white screen. I have narrowed down the problem to lines 48-75 in the file linked below. Where am I going wrong? I tried a simple
console.log
console.log
from within the handler closure to no avail. What am I missing here? Link to the file:
https://github.com/angeldollface/mina/blob/main/src/server.ts
GitHub
mina/src/server.ts at main Β· angeldollface/mina
A minimal web framework for building reactive, server-side-rendered web applications. :fairy_woman: (W.I.P.) - angeldollface/mina
mina/src/server.ts at main Β· angeldollface/mina
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Oak: Remove HTML extensions when serving files
cxxCcxx / help
3y ago
Slow loading time on localhost
OokerOOoker / help
3y ago
Serving static website
Niranjan RameshNNiranjan Ramesh / help
3y ago
remoteAddr returning localhost on Deno Deploy
kevingKkeving / help
3y ago