saberland/saber

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

AlexisJC posted onGitHub

<!-- Please don't delete this template or we'll close your issue -->

<!-- Before creating an issue please make sure you are using the latest version of Saber. -->

<!-- Issues which contain questions or support requests will be closed. -->

<!-- Please ask questions via following several ways. -->

<!-- https://chat.saber.land/ -->

<!-- https://stackoverflow.com/questions/ask?tags=saberjs -->

Bug report

Steps to reproduce

<!-- If you are reporting a bug that can ONLY be reproduced on your repository, PLEASE provide this repo link. That takes guessing work out of the way and saves us time. -->

<!-- You can also use this CodeSandbox starter https://bit.ly/2IlcpNF -->

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

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.

posted by egoist over 5 years ago

Fund this Issue

$0.00
Funded

Pull requests