wking-io / elm-live

⚡ A flexible dev server for Elm. Live reload included.
https://elm-live.com
MIT License
1.05k stars 61 forks source link

elm-live adds "undefined" text to the document #245

Open DavidDTA opened 3 years ago

DavidDTA commented 3 years ago

This is what my html looks like:

<html>
  <head>[...]</head>
  <body>
     <div>[...]<div></div></div>

<!-- Inserted by Reload -->
<script src="/reload/reload.js"></script>
<!-- End Reload -->

undefined
  </body>
</html>

I have confirmed that the "undefined" text does not appear when using elm make

elm-live --version
4.0.2
elm --version
0.19.1
wking-io commented 3 years ago

I will take a look at this! Do you have a repo that can reproduce this bug?

DavidDTA commented 3 years ago

This repo produces the issue: https://github.com/DavidDTA/timetrack

niehusst commented 1 year ago

Also experiencing this issue (pinging since it looks like this hasnt gotten attention in over a year). Not a huge deal since I only use elm-live for local development, but it would be nice to get this fixed.

AsbjornOlling commented 7 months ago

Just wanted to chip in and say that I have this exact problem.