Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I use the plugin hexo-generator-sitemap, I can't deploy my blog with error #1245

Closed
Andrew-liu opened this issue May 1, 2015 · 2 comments

Comments

@Andrew-liu
Copy link

I have execte some command below:

$  npm install hexo-generator-feed --save
hexo-generator-feed@0.2.1 node_modules/hexo-generator-feed
├── utils-merge@1.0.0
└── ejs@1.0.0

then, I modify _config.yml

plugins:
- hexo-generator-sitemap

and deploy my blog, I get a error

$ hexo d -g
[error] TypeError: Cannot read property 'sitemap' of undefined
TypeError: Cannot read property 'sitemap' of undefined
    at module.exports (/Users/andrew_liu/Andrew-liu.github.io/node_modules/hexo-generator-sitemap/lib/generator.js:25:17)
    at Domain.<anonymous> (/usr/local/lib/node_modules/hexo/lib/theme/index.js:113:7)
    at Domain.run (domain.js:197:16)
    at /usr/local/lib/node_modules/hexo/lib/theme/index.js:112:7
    at /usr/local/lib/node_modules/hexo/node_modules/async/lib/async.js:125:13
    at Array.forEach (native)
    at _each (/usr/local/lib/node_modules/hexo/node_modules/async/lib/async.js:46:24)
    at Object.async.each (/usr/local/lib/node_modules/hexo/node_modules/async/lib/async.js:124:9)
    at Theme._generate (/usr/local/lib/node_modules/hexo/lib/theme/index.js:104:9)
    at /usr/local/lib/node_modules/hexo/lib/theme/index.js:180:12

I can't solve this problem, hope get some help.

Thanks!

@geekrainy
Copy link
Member

@naokiy
Copy link
Contributor

naokiy commented May 6, 2015

This issue was already solved

hexojs/hexo-generator-sitemap#10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants