tea3 / hexo-include-markdown

Easily load markdownfiles in Markdown .
MIT License
17 stars 2 forks source link

Error: [hexo-include-markdown] Could not open db.json #8

Open bennycode opened 3 years ago

bennycode commented 3 years ago

I ran hexo clean && hexo generate and now I am getting this error:

FATAL Error: [hexo-include-markdown] Could not open db.json . at ReadFileContext.callback (C:\dev\projects\bennycode\typescript.tv\node_modules\hexo-include-markdown\lib\orverwriteCache.js:22:15) at FSReqCallback.readFileAfterOpen [as oncomplete] (node:fs:283:13)

bennycode commented 3 years ago

Thanks to https://github.com/tea3/hexo-include-markdown/issues/4 I was able to get around the problem by using:

touch db.json && hexo clean && touch db.json && hexo generate && hexo server --open

@tea3 can you avoid throwing an error in your code when "db.json" is not found or just create an empty "db.json"?

appotry commented 2 years ago

the same problem!

bennycode commented 2 years ago

@appotry you can use my plugin: https://github.com/bennycode/hexo-insert-markdown