brainhubeu/gatsby-docs-kit

Error in gatsby-docs-kit.yml causes Unhandled Exception

Closed this issue · 3 comments

Erroneous data in gatsby-docs-kit.yml causes Unhandled Exception and, ultimately, Gatsby crashes.

Steps to reproduce

  1. Open gatsby-docs-kit.yml
  2. Add duplicate of a key to YAML file:
items:
- title: Render component when all the permissions match
  file: permissionsMatch.md
items:
- title: Render component when one of the permissions match
  file: oneMatch.md
  1. Check Gatsby console:
error UNHANDLED EXCEPTION

YAMLException: duplicated mapping key at line 29, column -102:
  items:

@kkoscielniak

for me duplicated mapping key at line 29 provides enough info about the error

This info still doesn't fix the issue. The thing to resolve is quitting the gatsby itself whenever the issue with duplicated key occurs.

This issue doesn't occur in the newest version.
Please reopen if you somehow manage to reproduce it