Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server breaks with an HTML file with no line break at the end #97

Open
gusborg88 opened this issue Nov 27, 2024 · 0 comments
Open

server breaks with an HTML file with no line break at the end #97

gusborg88 opened this issue Nov 27, 2024 · 0 comments

Comments

@gusborg88
Copy link

Here's the stack trace with my name censored:

[11ty] Cannot read properties of undefined (reading 'length') (via TypeError)
[11ty]
[11ty] Original error stack trace: TypeError: Cannot read properties of undefined (reading 'length')
[11ty]     at SendStream.hasTrailingSlash (C:\Users\me\SavedGames\FNF-Hypertext-Engine\node_modules\send\index.js:302:30)
[11ty]     at SendStream.pipe (C:\Users\me\SavedGames\FNF-Hypertext-Engine\node_modules\send\index.js:585:34)
[11ty]     at EleventyDevServer.eleventyProjectMiddleware (C:\Users\me\SavedGames\FNF-Hypertext-Engine\node_modules\@11ty\eleventy-dev-server\server.js:543:44)
[11ty]     at EleventyDevServer.eleventyDevServerMiddleware (C:\Users\me\SavedGames\FNF-Hypertext-Engine\node_modules\@11ty\eleventy-dev-server\server.js:510:5)
[11ty]     at EleventyDevServer.onRequestHandler (C:\Users\me\SavedGames\FNF-Hypertext-Engine\node_modules\@11ty\eleventy-dev-server\server.js:633:11)
[11ty]     at Server.emit (node:events:518:28)
[11ty]     at parserOnIncoming (node:_http_server:1150:12)
[11ty]     at HTTPParser.parserOnHeadersComplete (node:_http_common:117:17)

The issue was with a file without a line break at the end, I'm on windows so it has carriage returns too. Sometimes when I removed it, it stopped working, but it always worked with it in.
Here's the HTML file (i was just messing around testing things)

---
---
<audio data-music id="freaky-menu" src="assets/music/freakyMenu.mp3"></audio>
<label><input type="checkbox">jefferys endless aethos</label>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant