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
TypeError: Cannot set property ancestorOrigins of [object Location] which has only a getter
You shouldn't do deepAssign on settings object like that. Your deepAssign function tries to assign defaults to the window.document (???) and that completely crashes the library because browsers will not allow that.
I don't know why it throws such error only for my setup and not for other users and I have no time for proper investigations but I think it was worth reporting.
The text was updated successfully, but these errors were encountered:
Actually the reason why is that your test site and probably other users don't set document option in settings, skipping that deepAssign for that property.
I see, makes sense... Must have missed that when adding support for defining document :) I'll fix it this weekend or so... I'll probably remove deepAssign altogether and just use spread for each option, it's been a while.
simonwep
changed the title
TypeError: Cannot set property ancestorOrigins of [object Location] which has only a getter
Specifying document breaks the options
Mar 29, 2023
TypeError: Cannot set property ancestorOrigins of [object Location] which has only a getter
You shouldn't do deepAssign on settings object like that. Your deepAssign function tries to assign defaults to the
window.document
(???) and that completely crashes the library because browsers will not allow that.I don't know why it throws such error only for my setup and not for other users and I have no time for proper investigations but I think it was worth reporting.
The text was updated successfully, but these errors were encountered: