microsoft / microsoft/TypeScript

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

Đang mở
#62,436 1 bình luận 2 reaction 1 người được giao Xem trên GitHub

@andrewbranch đang làm issue này rồi.

Từ ngày 11/9/2025.

Ngôn ngữ chính
Go
Star
111k
Fork
14.3k
Merge trung bình
2 ngày 4 giờ
Pull request đã merge (30 ngày)
132

Mô tả

🔎 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.