microsoft / microsoft/TypeScript
"This import path is unsafe to rewrite because it resolves to another project" missing an error location
Abierto
@andrewbranch ya está trabajando en esto.
Desde el 11/9/2025.
- Lenguaje dominante
- Go
- Estrellas
- 111k
- Forks
- 14.3k
- Merge medio
- 2 d 4 h
- PR fusionados (30 d)
- 132
Descripción
🔎 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
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Evaluación
Este issue todavía no se ha evaluado.