Skip to content

Restore TS2306 for resolved non-module files matching ambient patterns - #64905

Closed
Ryan Cavanaugh (RyanCavanaugh) with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-ts2306-issue
Closed

Ryan Cavanaugh (RyanCavanaugh) with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-ts2306-issue

Conversation

Copilot AI commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Import-attribute support introduced a regression where imports resolving to script files fall back to wildcard ambient modules instead of reporting TS2306.

  • Resolution: Remove the wildcard lookup before the non-module diagnostic. Preserve unresolved-import fallback and attribute-aware resolution of module symbols.
  • Coverage: Add paths and rootDirs cases, with controls for real-module precedence and unresolved wildcard imports.
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

4 participants