html-nodejs example: document undefined error in Windows system, but same works in macOS #466
Unanswered
ravitejaavv
asked this question in
Bug report
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Able to run this html project and render the home page locally in mac OS
https://github.com/markdoc/docs/tree/main/examples/html-nodejs
But same is not working in windows 10 & 11.
Local host is always showing "not found" error (404).
In Windows, always the control goes to document not found condition and showing 404 error. We tried almost all latest nodejs versions and still the problem is same.
const path = req.params[0];
const document = contentManifest[path];
if (!document) {
return res.sendStatus(404);
}
Can anyone help me on this issue?
Beta Was this translation helpful? Give feedback.
All reactions