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 encountered this error in the console while using HTMX:
htmx.min.js:1 The selector "#filterForm" on hx-include returned no matches!
It seems to come from a console.error call inside the HTMX source code when an hx-include selector does not match any element in the DOM.
I want to know if there’s a way to catch this error using an HTMX event (like htmx:*) instead of relying on console output or a global window.onerror listener.
Thanks in advance!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
hello,
I encountered this error in the console while using HTMX:
htmx.min.js:1 The selector "#filterForm" on hx-include returned no matches!It seems to come from a console.error call inside the HTMX source code when an hx-include selector does not match any element in the DOM.
I want to know if there’s a way to catch this error using an HTMX event (like htmx:*) instead of relying on console output or a global window.onerror listener.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions