Skip to content

Improve unresolved import errors - #97

Merged
jaredly merged 3 commits into
mainfrom
clearer-unresolved-errors
Feb 20, 2026
Merged

jaredly merged 3 commits into
mainfrom
clearer-unresolved-errors

Conversation

@jaredly

@jaredly jaredly commented Feb 11, 2026

Copy link
Copy Markdown
Collaborator

Summary:

Previously, unresolved interpolations surfaced generic errors like Unable to resolve someExternalFragment, which made it hard to identify where the unresolved symbol came from.

When template interpolation resolution fails, parser emits a detailed message:

  • imported symbol name
  • source module string
  • file path and line number of the import

Before:

  • Unable to resolve someExternalFragment

After:

  • Unable to resolve import someExternalFragment from "somewhere" at /invalidThings.js:4.

Issue: none

Test plan:

see tests

Previously, unresolved interpolations surfaced generic errors like `Unable to resolve someExternalFragment`, which made it hard to identify where the unresolved symbol came from.

When template interpolation resolution fails, parser emits a detailed message:
  - imported symbol name
  - source module string
  - file path and line number of the import

Before:
- `Unable to resolve someExternalFragment`

After:
- `Unable to resolve import someExternalFragment from "somewhere" at /invalidThings.js:4.`

Issue: none

Test plan:
see tests
@jaredly jaredly self-assigned this Feb 11, 2026
@changeset-bot

changeset-bot Bot commented Feb 11, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 99c8808

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@khanacademy/graphql-flow Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jaredly
jaredly marked this pull request as ready for review February 20, 2026 14:07
@jaredly
jaredly requested a review from a team February 20, 2026 14:07
@jaredly
jaredly merged commit 7fd8814 into main Feb 20, 2026
1 check passed
@jaredly
jaredly deleted the clearer-unresolved-errors branch February 20, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants