Closed
Description
Bug Report
π Search Terms
TS5056
, because it would be overwritten by multiple input files
π Version & Regression Information
- This changed between versions 4.4.4 and
4.5.0-dev.20211029
β― Playground Link
This bug cannot be reproduced in Playground.
π» Code
Sorry this bug cannot be reproduced as as simple code. Instead of I've created the repository to reproduce this.
https://github.com/sosukesuzuki-sandbox/ts-4.5-bug-reproduce
π Actual behavior
Does not throw error TS5056: Cannot write file '/to/file/path' because it would be overwritten by multiple input files.
π Expected behavior
Throw error TS5056: Cannot write file '/to/file/path' because it would be overwritten by multiple input files.
Activity
DanielRosenwasser commentedon Oct 29, 2021
Isn't this correctly catching an error now? The two files would have been written to the same output
.js
file.If you're using a bundler or similar build tool that does its own compilation, you can turn
--noEmit
on and this should work.andrewbranch commentedon Oct 29, 2021
The error is correct and itβs gone from 4.5.
It seems that
matchFiles
is broken in 4.5; itβs not picking up the TSX file at all. Investigating.