Skip to content

[Bug]: incremental update leaves stale TypeScript imports after an alias-only change #5017

Closed

Description

@azizur100389

Reproduction

Confirmed on v8 at 59b5ab11 (0.9.102), Python 3.12 on Windows. No LLM or API credentials are needed.

  1. Put export function target() {} in both old/target.ts and new/target.ts.
  2. In main.ts, import target from @app/target and call it from an exported function.
  3. Set compilerOptions.baseUrl to . and compilerOptions.paths to {"@app/*":["./old/*"]} in tsconfig.json.
  4. Run graphify update . --no-cluster. Change only the alias to ./new/* and run the same command.

Actual behavior

The imports_from edge still points to old/target.ts. Adding or deleting the config also leaves the unchanged importer unresolved or attached to the old file.

Expected behavior

The edge should match a fresh rebuild after the resolver input changes, even when the importer bytes are unchanged.

This is a follow-up to #4801. It uses the resolution-input classification introduced for the no-change gate in #4748.

Activity

  1. github-actions commented on Nov 5, 2026

    @github-actions

    Thanks for opening this issue, @azizur100389. A maintainer will take a look soon.

    If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.

    To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.

  2. safishamsi commented on Nov 8, 2026

    @safishamsi
    Member

    Fixed in 0.9.104 (now on PyPI) via #5022: a change to a JS/TS resolution input (tsconfig/jsconfig/lockfile) now triggers a full rebuild so importers pick up the new resolution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions