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

Error: siteConfig.url is required for saber-plugin-feed #63

Closed
steveny9911 opened this issue Jul 24, 2019 · 2 comments
Closed

Error: siteConfig.url is required for saber-plugin-feed #63

steveny9911 opened this issue Jul 24, 2019 · 2 comments

Comments

@steveny9911
Copy link

Hi there,
I'm following the Quick start guide and I ran into some problem when building the site with yarn saber ; I have the full error message down below.
My apology that I have little understanding about node/npm/yarn; it would be great if any guidance can be provided, or feel free to direct me to other places that are more appropriate. Thanks.

node -v: v12.7.0
npm -v: 6.10.0
error Error: siteConfig.url is required for saber-plugin-feed
    at Object.exports.apply (C:\Users\styang\Desktop\my-site\node_modules\saber-plugin-feed\lib\index.js:22:11)
    at Saber.applyPlugin (C:\Users\styang\Desktop\my-site\node_modules\saber\lib\index.js:204:12)
    at Saber.prepare (C:\Users\styang\Desktop\my-site\node_modules\saber\lib\index.js:171:12)
    at processTicksAndRejections (internal/process/task_queues.js:85:5)
    at async Saber.serve (C:\Users\styang\Desktop\my-site\node_modules\saber\lib\index.js:342:5)

Full message

C:\Users\styang\Desktop\my-site>npm run dev

> my-site@ dev C:\Users\styang\Desktop\my-site
> saber

info Using config file: saber-config.js
info Using theme: portfolio
info Fetching GitHub data for steveny9911..
info Using 2 plugins from config file
error Error: siteConfig.url is required for saber-plugin-feed
    at Object.exports.apply (C:\Users\styang\Desktop\my-site\node_modules\saber-plugin-feed\lib\index.js:22:11)
    at Saber.applyPlugin (C:\Users\styang\Desktop\my-site\node_modules\saber\lib\index.js:204:12)
    at Saber.prepare (C:\Users\styang\Desktop\my-site\node_modules\saber\lib\index.js:171:12)
    at processTicksAndRejections (internal/process/task_queues.js:85:5)
    at async Saber.serve (C:\Users\styang\Desktop\my-site\node_modules\saber\lib\index.js:342:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! my-site@ dev: `saber`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the my-site@ dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\styang\AppData\Roaming\npm-cache\_logs\2019-07-24T17_52_10_343Z-debug.log
@steveny9911
Copy link
Author

steveny9911 commented Jul 24, 2019

I realized there was a demo project; my saber-config.js was missing siteConfig property

module.exports = {
  siteConfig: {
    description: 'Description',
    url: 'URL'
  }
}

@egoist
Copy link
Collaborator

egoist commented Jul 25, 2019

Thanks for reporting, I also fixed it in create-portfolio (3d98910)

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

2 participants