Skip to content

vuepress build with --debug flag breaks doc search #1944

Open
@favoyang

Description

@favoyang
  • I confirm that this is an issue rather than a question.

Bug report

vuepress build with "--debug" flag breaks doc search, and perhaps other features.

Steps to reproduce

  1. create a project with docs folder.
  2. yarn add -D vuepress serve
  3. add a few random markdown files into the docs folder.
  4. vuepress build docs && serve docs/.vuepress/dist works.
  5. vuepress build docs --debug && serve docs/.vuepress/dist. then try doc search function, type anything without response.

What is expected?

It shall work with or without --debug flag

What is actually happening?

Not only doc search failed, the vue devtools can not detect vue on the page.

Other relevant information

  • Output of npx vuepress info in my VuePress project:
$ npx vuepress info                                               
                                                                  
Environment Info:                                                 
                                                                  
  System:                                                         
    OS: Windows 10                                                
    CPU: (8) x64 Intel(R) Core(TM) i7-2635QM CPU @ 2.00GHz        
  Binaries:                                                       
    Node: 10.16.2 - C:\Program Files\nodejs\node.EXE              
    Yarn: 1.19.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD       
    npm: 6.10.3 - C:\Program Files\nodejs\npm.CMD                 
  Browsers:                                                       
    Edge: 44.18362.387.0                                          
  npmPackages:                                                    
    @vuepress/core: Not Found                                     
    @vuepress/theme-default: Not Found                            
    vuepress: ^1.2.0 => 1.2.0                                     
  npmGlobalPackages:                                              
    vuepress: Not Found                                           

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: configRelates to VuePress configtype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions