LouisBarranqueiro / hexo-algoliasearch

:mag_right: A plugin to index posts of your Hexo blog on Algolia
MIT License
135 stars 12 forks source link

Can not collected post #126

Closed heowc closed 2 years ago

heowc commented 2 years ago

Description

INFO  164 files generated in 1.02 s
INFO  0 posts collected
INFO  Clearing index on Algolia...
INFO  Index cleared
INFO  Indexing posts on Algolia...
INFO  Indexation done. 0 posts indexed.

Expected behavior

We should be able to collect posts normally and create indexes

Steps to reproduce the bug

Environment

Plugin configuration

algolia:
  appId: "xxx"
  apiKey: "xxx"
  adminApiKey: "xxx"
  chunkSize: 5000
  indexName: "heowc.github.io"
  fields:
    - tags
    - path
    - title
    - permalink

Additional information

heowc commented 2 years ago

Isn't this a problem? @LouisBarranqueiro 🤔

LouisBarranqueiro commented 2 years ago

👋 @heowc, I would say it is related to Hexo v6. Try downgrading to Hexo v5 if you can for now. I will investigate what needs to be done to fix the issue.

LouisBarranqueiro commented 2 years ago

I just tested the library with hexo v6 and it works as expected. I checked the changelog of Hexo v6 and the only breaking change is that they dropped support of Node v10. This is probably related to the configuration of your theme and/or blog.

heowc commented 2 years ago

The answer was late.

Oh... is it? Then I will check my dependencies. 🤣

thank you.