Skip to content

After fresh project clone, npm run dev errors with Pagefind error #69

Description

@McSneaky

Package version

0.0.0

Describe the bug

npm run dev errors out with following message:

npm run dev

> v7-new-docs@0.0.0 predev
> npm run dev:search:index


> v7-new-docs@0.0.0 dev:search:index
> pagefind --site build/public --output-path=public/pagefind


Running Pagefind v1.5.2 (Extended)
Running from: "/home/mcsneaky/Projects/AdonisJS/v7-docs"
Source:       "build/public"
Output:       "public/pagefind"

[Walking source directory]
Found 0 files matching **/*.{html}

[Parsing files]
Did not find a data-pagefind-body element on the site.
↳ Indexing all <body> elements on the site.

[Reading languages]
Discovered 0 languages: 

[Building search indexes]
Total: 
  Indexed 0 languages
  Indexed 0 pages
  Indexed 0 words
  Indexed 0 filters
  Indexed 0 sorts
Error: Pagefind was not able to build an index. 
Most likely, the directory passed to Pagefind was empty or did not contain any html files.
Error: Pagefind was not able to build an index. 
Most likely, the directory passed to Pagefind was empty or did not contain any html files.

How to reproduce:

  1. git clone
  2. npm install
  3. cp .env.example .env
  4. node ace generate:key
  5. npm run dev

Running node ace serve --hmr directly works tho, seems like issue comes from predev npm run dev:search:index

Reproduction repo

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions