microsoft / microsoft/TypeScript
Project reference build error when one of projects' exported var contains external module's vars.
Aperta
@weswigham ci sta già lavorando.
Dal 12/2/2021.
Bug
Domain: tsc -b
Rescheduled
- Lingua principale
- Go
- Stelle
- 111k
- Fork
- 14.3k
- Merge medio
- 2g 4h
- PR unite (30g)
- 132
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.