microsoft / microsoft/TypeScript

Project reference build error when one of projects' exported var contains external module's vars.

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

@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.

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

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

はじめの一歩

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

評価

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

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

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