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
htmx.js:715 Uncaught TypeError: Cannot read properties of null (reading 'htmx-internal-data')
at getInternalData (htmx.js:715:19)
at issueAjaxRequest (htmx.js:4068:17)
at htmx.js:2525:13
at htmx.js:2428:71
I neglected to read the docs. hx-sync needs a selector before the strategy, and it works fine. A nicer error indicating that the value in hx-sync is formatted incorrectly would have helped, so I'll leave this issue open for the possibility.
egtann
changed the title
hx-sync causes elt is null errors
hx-sync has cryptic elt is null errors on malformed values
Mar 25, 2024
The error
In Firefox v124:
In Chromium v123:
To Reproduce
Type anything into the input, wait 500ms, and you'll see the error.
Ideally the error would helpfully point you to the invalid
hx-sync
value that needs to change.The text was updated successfully, but these errors were encountered: