Skip to content

Error messages could be improved #5121

@rbalicki2

Description

@rbalicki2

Consider this error message


[ERROR] Error: ✖︎ Operation 'ShoppingRootPageQuery' references undefined variable: '$isCloseupRelatedModulesQuery'.

  app/www/closeup/duplo/unauth/UnauthContextMenu.tsx:131:28
  130 │     }
  131 │     richMetadata @skip(if: $isCloseupRelatedModulesQuery) {
      │                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  132 │       article {

The diagnostic should have a related location that shows the definition location of ShoppingRootPageQuery, so that I can cmd+click to open it, instead of manually opening ShoppingRootPage. We also don't use haste 😭 (I know I know, it's our fault) so in some cases, there may be multiple possible definition locations.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions