microsoft / microsoft/TypeScript
"This import path is unsafe to rewrite because it resolves to another project" missing an error location
Đang mở
@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
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.