easyops-cn/docusaurus-search-local

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

Opened this issue · 3 comments

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

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

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

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