microsoft / microsoft/TypeScript

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

Aperta
#62,436 1 commento 2 reazioni 1 assegnatario Rivendicata da @andrewbranch Vedi su GitHub
Lingua principale
Go
Stelle
111k
Fork
14.3k
Merge medio
2g 4h
PR unite (30g)
132

Descrizione

### 🔎 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_

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.