Hexo: TypeError: Cannot read property 'count' of undefined

Created on 10 Feb 2017  ·  16Comments  ·  Source: hexojs/hexo

$ hexo g
INFO Start processing
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
TypeError: Cannot read property 'count' of undefined
at Hexo.module.exports (E:\github\hexo\node_modules\hexo-baidu-url-submit\lib\generator.js:4:40)
at Hexo.tryCatcher (E:\github\hexo\node_modules\bluebird\js\release\util.js:16:23)
at Hexo. (E:\github\hexo\node_modules\bluebird\js\release\method.js:15:34)
at E:\github\hexo\node_modules\hexo\lib\hexo\index.js:337:24
at tryCatcher (E:\github\hexo\node_modules\bluebird\js\release\util.js:16:23)
at MappingPromiseArray._promiseFulfilled (E:\github\hexo\node_modules\bluebird\js\release\map.js:61:38)
at MappingPromiseArray.PromiseArray._iterate (E:\github\hexo\node_modules\bluebird\js\release\promise_array.js:113:31)
at MappingPromiseArray.init (E:\github\hexo\node_modules\bluebird\js\release\promise_array.js:77:10)
at MappingPromiseArray._asyncInit (E:\github\hexo\node_modules\bluebird\js\release\map.js:30:10)
at Async._drainQueue (E:\github\hexo\node_modules\bluebird\js\release\async.js:138:12)
at Async._drainQueues (E:\github\hexo\node_modules\bluebird\js\release\async.js:143:10)
at Immediate.Async.drainQueues (E:\github\hexo\node_modules\bluebird\js\release\async.js:17:14)
at runCallback (timers.js:649:20)
at tryOnImmediate (timers.js:622:5)
at processImmediate [as _immediateCallback] (timers.js:594:5)
FATAL Cannot read property 'count' of undefined
TypeError: Cannot read property 'count' of undefined
at Hexo.module.exports (E:\github\hexo\node_modules\hexo-baidu-url-submit\lib\generator.js:4:40)
at Hexo.tryCatcher (E:\github\hexo\node_modules\bluebird\js\release\util.js:16:23)
at Hexo. (E:\github\hexo\node_modules\bluebird\js\release\method.js:15:34)
at E:\github\hexo\node_modules\hexo\lib\hexo\index.js:337:24
at tryCatcher (E:\github\hexo\node_modules\bluebird\js\release\util.js:16:23)
at MappingPromiseArray._promiseFulfilled (E:\github\hexo\node_modules\bluebird\js\release\map.js:61:38)
at MappingPromiseArray.PromiseArray._iterate (E:\github\hexo\node_modules\bluebird\js\release\promise_array.js:113:31)
at MappingPromiseArray.init (E:\github\hexo\node_modules\bluebird\js\release\promise_array.js:77:10)
at MappingPromiseArray._asyncInit (E:\github\hexo\node_modules\bluebird\js\release\map.js:30:10)
at Async._drainQueue (E:\github\hexo\node_modules\bluebird\js\release\async.js:138:12)
at Async._drainQueues (E:\github\hexo\node_modules\bluebird\js\release\async.js:143:10)
at Immediate.Async.drainQueues (E:\github\hexo\node_modules\bluebird\js\release\async.js:17:14)
at runCallback (timers.js:649:20)
at tryOnImmediate (timers.js:622:5)
at processImmediate [as _immediateCallback] (timers.js:594:5)

Most helpful comment

1.npm remove hexo-baidu-url-submit
2.hexo clean
3.hexo g
You can try it.
hope that can help you.

All 16 comments

Could you please run the hexo g --debug and paste the trace log?

Do you slove this problem now?

I have the same problem.

1.npm remove hexo-baidu-url-submit
2.hexo clean
3.hexo g
You can try it.
hope that can help you.

issue 2556 shows that this plugin needs configuration.
The repo hexo-baidu-url-submit doesn't show User Guide in README, but links to the author's website. It's really sucks.

这个插件真的有点坑到我,反复尝试了很久 感谢@strugglingxingf

@strugglingxingf thanks

@strugglingxingf Thank you very much!

@strugglingxingf thanks

@strugglingxingf Thanks!

安装了百度推送的插件 瞬间崩溃 真是 搞了好久才好 把百度推送的和抓取的都删掉就可以

@strugglingxingf thanks!!!

1.npm remove hexo-baidu-url-submit
2.hexo clean
3.hexo g
You can try it.
hope that can help you.

真的非常感谢您的回答,搜索了很多解决办法都无效,郁闷死,尝试了您的方法,立即解决问题,感谢!

thinks @strugglingxingf
我是域名失效后,没去管百度推送的插件,以为在_config.yml文件中注释掉baidu_url_submit相关的配置就可以了,其实不是,感谢 strugglingxingf 的方式解决了我的问题。

感谢,学会了使用 hexo g --debug 发现了导致报错的两个插件,已删除并解决问题,感谢。

介质-图像插件: hexo-renderer-stylus
SEO链接,可视化: hexo-seo-link-visualizer

@strugglingxingf Thank you very much

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cxgreat2014 picture cxgreat2014  ·  3Comments

jasoncheng911 picture jasoncheng911  ·  3Comments

demurgos picture demurgos  ·  3Comments

jakeg picture jakeg  ·  3Comments

hgDendi picture hgDendi  ·  3Comments