hexo-include-markdown
hexo-include-markdown copied to clipboard
Error: [hexo-include-markdown] Could not open db.json
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)
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"?
the same problem!
@appotry you can use my plugin: https://github.com/bennycode/hexo-insert-markdown