-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Html.Attributes.id "Elm" causes the page to stop loading. #491
Comments
I've narrowed it down to this view : App Data ActionData RouteParams -> Shared.Model -> Model -> View (PagesMsg Msg)
view app _ model =
{ title = ""
, body = Ui.el [ Ui.id "Elm" ] Ui.none
} I think what is happening |
I've converted Index.elm into a SSCCE for this issue. It's the latest commit on https://github.com/MartinSStewart/martins-homepage/tree/weird-bug |
Thanks for the issue and SSCCE! I was trying to look through the codebase for anything that references an "elm" or "Elm" HTML id, but couldn't find it 🤔 I also notice that the elm-pages docs site, for example, doesn't have any elements with the ID "elm" or "Elm". So I'm pretty confused at why this would cause a problem. |
The generated JS module name usually is called Elm right? Maybe that can somehow have a name collision with DOM ids? |
Steps to reproduce:
npx elm-pages dev
localhost:1234
Note that this issue goes away if you go to the previous commit on the branch.
I'm on Windows, Firefox, and I can trigger this error both on Lamdera 1.3 and 1.2.2
The text was updated successfully, but these errors were encountered: