microsoft / microsoft/TypeScript
"This import path is unsafe to rewrite because it resolves to another project" missing an error location
@andrewbranch arbeitet bereits daran.
Seit 11.9.2025.
- Vorherrschende Sprache
- Go
- Sterne
- 111k
- Forks
- 14.3k
- Ø Merge
- 2 T. 4 Std.
- Gemergte PRs (30 T.)
- 132
Beschreibung
### 🔎 Search Terms
This import path is unsafe to rewrite because it resolves to another project
### 🕗 Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
### ⏯ Playground Link
_No response_
### 💻 Code
Repro steps:
`tsc -b` on https://github.com/andrewbranch/ts-fix-baseurl/commit/0635ce46427b7a36db608891729178d057a69f55
### 🙁 Actual behavior
```
> tsc -b tsconfig.json
error TS2878: This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files.
Found 1 error.
```
### 🙂 Expected behavior
Show the error on each broken import path. Red squigglies appear in the correct places in the editor, inside multiple files within `test/`
### Additional information about the issue
_No response_
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.