player-ui / player

Home Page:https://player-ui.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Asset: Improved Error messaging

hborawski opened this issue · comments

Is your feature request related to a problem? Please describe.

The ReactAsset component handles fetching the implementation from the asset registry, and throwing errors if an asset is not found. These errors indicate the direct cause, but could do a better job guiding the user to the root cause.

We should enhance this messaging to help the user self resolve the issue when possible.

Describe the solution you'd like

  • Add additional metadata to the existing error messages to include what assets and registrations the current configuration supports.
  • Add some react-like errors that give suggestions when there are multiple potential causes
    • Mismatched React Context could show no assets registered, but could be caused by no plugins being added to the Player instance.

Additional context