-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting TypeError: null is not an object (evaluating 's.filters') with pagefind.debouncedSearch #441
Comments
I just manually recreate debouncedSearch, like
it doesn't throw an error, which suggests to me there's some shenanigans going on with |
Adding |
You're right. I can reproduce this. The pagefind/pagefind_web_js/lib/coupled_search.ts Lines 403 to 406 in 5bbc5a7
I am unsure of the purpose of |
Ahh I see what has happened here. pagefind/pagefind_web_js/lib/coupled_search.ts Lines 348 to 351 in 5bbc5a7
The preload function is mutating the options object, rather than passing a new one down. Which causes the now-mutated options object to be passed to the search function, which returns null 😩 Will fix |
Can confirm. This fixes it on my side. |
I’ll go ahead and close this issue, since it looks like #444 fixed it. |
Released in v1.0.4 🎉 |
If I pass any options to pagefind.debouncedSearch, it throws an error, TypeError: null is not an object (evaluating 's.filters'), but it doesn't throw that error if I call pagefind.search with the same options.
The text was updated successfully, but these errors were encountered: