microsoft / microsoft/TypeScript

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

オープン
#62,436 コメント 1 件 リアクション 2 件 担当者 1 名 GitHub で見る

@andrewbranch がすでに取り組んでいます。

2025年9月11日 から。

主要言語
Go
スター
111k
フォーク
14.3k
平均マージ
2日 4時間
マージ済み PR(30日)
132

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。