Closed chancyk closed 7 years ago
Thanks for reporting.
Where do you include the script to the page? I would guess it's in the head
and at the time there is no document.body
, if it's the case put your script in the body
as a workaround.
I'll probably fix this soon.
I was actually just letting elm-make
generate the entire index.html, but you're right, if I create an index.html and include elm.js
as a script instead, it throws the error when inside of <head>
but works when it's either inside of or after <body>
.
Windows 7 64-bit Chrome 56.0.2924.87
It seems
document.body
is null when observe() is called on the MutationObserver.The console error:
The failing line:
Code that raises the exception (minimal slider component):