microsoft / microsoft/TypeScript
Project reference build error when one of projects' exported var contains external module's vars.
オープン
@weswigham がすでに取り組んでいます。
2021年2月12日 から。
Bug
Domain: tsc -b
Rescheduled
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.3k
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 132
説明
Bug Report
🔎 Search Terms
Project Reference.
🕗 Version & Regression Information
- This is a crash
- This changed between versions ______ and _______
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about ProjectReference
- I was unable to test this on prior versions because _______
⏯ Playground Link
https://github.com/07akioni/project-reference-build-error
💻 Code
// proj1/index.ts
import { enUS } from 'date-fns/locale'
const myLocale = {
name: 'enUS',
locale: enUS
}
export {
myLocale
}
// proj2/index.ts
import { myLocale } from 'proj1'
console.log(myLocale)
🙁 Actual behavior
error TS2304: Cannot find name 'Locale'
🙂 Expected behavior
It works.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。