carbon-design-system / carbon-platform

The "next" version of the Carbon Design System website, as a platform.
https://next.carbondesignsystem.com
Apache License 2.0
21 stars 5 forks source link

undefined relatedLibData #1771

Open francinelucca opened 1 year ago

francinelucca commented 1 year ago

Description

Tell us more about the problem that you're running into. What did you see? What did you expect to see?

when calling getLibraryData, if the response is undefined, we're not checking for that before accessing its properties, which is making the application error out.

Steps to reproduce

How do we reproduce the error? Please be as specific as you can.

  1. Change any of the devLibraries in libraries.mjs to add an "imaginary" ref, carbon-components-vue for example
  2. Run the application in dev mode. When the app attempts to get the carbon.yml file and doesn't find it, it will bomb out. (For example, try to access the carbon-react accordion detail page which has a relation to vue, and it will error out when trying to call out for that library)