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

Tutorial: Get an error before creating a first page #543

Closed
AlexisJC opened this issue Nov 2, 2019 · 1 comment · Fixed by #544
Closed

Tutorial: Get an error before creating a first page #543

AlexisJC opened this issue Nov 2, 2019 · 1 comment · Fixed by #544

Comments

@AlexisJC
Copy link

AlexisJC commented Nov 2, 2019

Bug report

Steps to reproduce

Follow actual tutorial setup.

What is expected?

Get a 404 page when running yarn saber.

What is actually happening?

Get a terminal error : Error in render: "TypeError: Cannot read property 'path' of undefined"

Other relevant information

  • Result of running saber -v: get an error because it is not installed globally
  • Browser version (optional):
  • Is Saber a global or local install? local
  • Which package manager did you use for the install? yarn
  • Does this issue occur when all plugins are disabled? yes
@egoist
Copy link
Collaborator

egoist commented Nov 2, 2019

Yeah that happens when you don't have any pages, for now you can create a page to work around it.

I'll fix that later but PR is welcome, basically we need to remove the last comma here when there're no pages.

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

Successfully merging a pull request may close this issue.

2 participants