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 service worker error #7883

Closed
glararan opened this issue Feb 11, 2022 · 3 comments · Fixed by #8556
Closed

Search service worker error #7883

glararan opened this issue Feb 11, 2022 · 3 comments · Fixed by #8556
Labels
search Search content for a static site

Comments

@glararan
Copy link

Operating System: Windows

DocFX Version Used: 2.59.0

Template used: default

Steps to Reproduce:

  1. Download newest version
  2. docfx init -q
  3. enable search
  4. docfx docfx_project\docfx.json --serve

Expected Behavior:
working search

Actual Behavior:
search crash

search-worker.js:39 
        
       Uncaught TypeError: Cannot read properties of undefined (reading 'search')
    at onmessage (search-worker.js:39:26)

image

@glararan
Copy link
Author

Ok so there was actually problem search index.json is not generated if noFollow is set to true.

Should be noted in docs.

@KalleOlaviNiemitalo
Copy link

Where was noFollow set to true?

@glararan
Copy link
Author

image

I thought its google search :) meta tag no index no follow

@yufeih yufeih added the search Search content for a static site label Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
search Search content for a static site
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants