You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm going to wait on this types change until we publish breaking changes is v4.0. Since document.getElementById() returns type HTMLElement | null, disallowing null would be a breaking change as it would force existing call sites to add a non-null ! assertion.
When trying to run the following code I got an unexpected error:
forgo.min.js:520 Uncaught Error: The container argument to the mount() function should be an HTML element.
Now, because of the typing of
mount()
, this doesn't throw an error, though I'm not sure why.null
however is never a valid container becauseif (parentElement)
will always returnfalse
.The text was updated successfully, but these errors were encountered: