Can't seem .render() or .renderToString() even though my project is the bare minimal #3645
Unanswered
ballgoesvroomvroom
asked this question in
Q&A
Replies: 2 comments
-
I couldn't reproduce this. I saved So presumably it has something to do with your server...? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Appreciate the swift response, here's my const express = require("express");
const app = express();
app.use(express.static(__dirname +"/public/views"));
app.get("/", (req, res) => {
console.log("connected");
res.type("application/html");
res.sendFile("index.html", {root: __dirname});
})
app.get("/contents", (req, res) => {
res.type("text/plain");
res.sendFile(__dirname + "/public/file.md");
})
app.listen(5000, () => console.log("5000")) I don't see anything out of the ordinary though |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With just a very simple
index.html
,index.css
, andapp.js
(client sided), served by a singleserver.js
running on Node.Js with express, I can't seem to get KaTeX to work whatsoever. Following the documentation, word for word, doesn't seem to change anything.With an error:
Beta Was this translation helpful? Give feedback.
All reactions