主要有一下几个报错处理:
- Uncaught TypeError: Cannot read property ‘addEventListener’ of null
- 执行hexo algolia时报TypeError: Cannot read property ‘filter’ of undefined
- 执行hexo algolia时报Error AlgoliaSearchNodeJS.AlgoliaSearchCore
- 执行hexo g时报Error: Cannot find module DTraceProviderBindings
Uncaught TypeError: Cannot read property ‘addEventListener’ of null
报错信息
1 | (index):1690 Uncaught TypeError: Cannot read property 'addEventListener' of null |
修复方法
修改主题配置:
关闭local_search
1 | # Local search |
修改站点配置:
1 | search: true |
执行hexo algolia时报TypeError: Cannot read property ‘filter’ of undefined
报错信息
1 | FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html |
修复方法
修改站点配置,修改algolia的filter
1 | algolia: |
执行hexo algolia时报Error AlgoliaSearchNodeJS.AlgoliaSearchCore
报错信息
1 | /home/work/github/blog/LeungGeorge.github.io/node_modules/bluebird/js/release/async.js:61 |
修复方法
安装hexo-algolia@0.2.0,再执行hexo algolia就可以了
1 | npm install hexo-algolia@0.2.0 |
执行hexo g时报Error: Cannot find module DTraceProviderBindings
报错信息
1 | { Error: Cannot find module './build/default/DTraceProviderBindings' |
解决办法
重装:hexo-cli
1 | npm uninstall hexo-cli -g |