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

No search results in localsearch. The search animation is on loop. #418

Open
prajalsharma opened this issue Jun 6, 2024 · 3 comments
Open

Comments

@prajalsharma
Copy link

prajalsharma commented Jun 6, 2024

When I did npm serve to implement I get this.
I added a plugin in the config file. Can someone help me.
plugins:[
[
require.resolve("@easyops-cn/docusaurus-search-local"),
({hashed: true, }),
]
],
added this plugin on the config file
Screenshot (194)
@weareoutman

@TarasMelnyk
Copy link

Same issue,
The devtools console showed an error
Failed to load resource: the server responded with a status of 404 (Not Found) :3000/search-index.json?_=32082eef:1 17:39:57.648 User%20Profile:1 Uncaught (in promise) SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON

@weareoutman
Copy link
Member

Can anyone share a repro link? Also have a look at #406

@hadar-co
Copy link

hadar-co commented Jul 11, 2024

I also had this issue, fixed it by adding a few configurations:

[
      require.resolve("@easyops-cn/docusaurus-search-local"),
      {
        indexBlog: false,
        indexDocs: true,
        docsRouteBasePath: "/",
        hashed: true,
      },
]

Previously I had only the hashed: true config, when I added the rest the issue was resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants