microsoft / microsoft/TypeScript

"This import path is unsafe to rewrite because it resolves to another project" missing an error location

Abierto
#62,436 1 comentario 2 reacciones 1 asignado Ver en GitHub

@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

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.