Skip to content
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

Search bar not working for docusaurus version 2.0.0-alpha.75 #81

Closed
ciklista opened this issue May 7, 2021 · 2 comments · Fixed by #83
Closed

Search bar not working for docusaurus version 2.0.0-alpha.75 #81

ciklista opened this issue May 7, 2021 · 2 comments · Fixed by #83
Labels
bug Something isn't working

Comments

@ciklista
Copy link

ciklista commented May 7, 2021

The following seems to be only an issue on Version 2.0.0-alpha.75. I have tested the search bar for versions v2.0.0-alpha.74 and v2.0.0-alpha.72. They seem to work fine.

I have installed the plugin on a fresh docusaurus (version 2.0.0-alpha.75) installation but am getting the following error a couple of seconds after having started the app.

Uncaught (in promise) TypeError: autoComplete.noConflict is not a function
    at fetchAutoCompleteJS (SearchBar.jsx?6f16:1)
    at async Promise.all (index 1)
    at async eval (SearchBar.jsx?6f16:32)
fetchAutoCompleteJS @ SearchBar.jsx?6f16:1
async function (async)
eval @ SearchBar.jsx?6f16:32
eval @ SearchBar.jsx?6f16:32
callCallback @ react-dom.development.js?61bb:3945
invokeGuardedCallbackDev @ react-dom.development.js?61bb:3994
invokeGuardedCallback @ react-dom.development.js?61bb:4056
invokeGuardedCallbackAndCatchFirstError @ react-dom.development.js?61bb:4070
executeDispatch @ react-dom.development.js?61bb:8243
processDispatchQueueItemsInOrder @ react-dom.development.js?61bb:8275
processDispatchQueue @ react-dom.development.js?61bb:8288
dispatchEventsForPlugins @ react-dom.development.js?61bb:8299
eval @ react-dom.development.js?61bb:8508
batchedEventUpdates$1 @ react-dom.development.js?61bb:22396
batchedEventUpdates @ react-dom.development.js?61bb:3745
dispatchEventForPluginEventSystem @ react-dom.development.js?61bb:8507
attemptToDispatchEvent @ react-dom.development.js?61bb:6005
dispatchEvent @ react-dom.development.js?61bb:5924
unstable_runWithPriority @ scheduler.development.js?3069:468
dispatchUserBlockingUpdate @ react-dom.development.js?61bb:5894

Looks like it is originating from here: https://github.com/easyops-cn/docusaurus-search-local/blob/master/src/client/theme/SearchBar/SearchBar.tsx#L29

When I click on the search bar, the load symbol will spin forever without returning results.
Do you need any further information?

@ciklista ciklista changed the title Search bar not working for docusaurus version 2.0.0-alpha.75 Search bar not working for docusaurus version 2.0.0-alpha.75 May 7, 2021
@weareoutman weareoutman added the bug Something isn't working label May 8, 2021
@weareoutman
Copy link
Member

Try v0.16.2

@ciklista
Copy link
Author

Works fine. Thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants