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

undefined relatedLibData #1771

Open
francinelucca opened this issue Oct 4, 2023 · 0 comments
Open

undefined relatedLibData #1771

francinelucca opened this issue Oct 4, 2023 · 0 comments

Comments

@francinelucca
Copy link
Collaborator

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant