typescript-go icon indicating copy to clipboard operation
typescript-go copied to clipboard

Missing error when reference directive file path doesn't exist

Open RyanCavanaugh opened this issue 1 month ago • 2 comments

Steps to reproduce

/// <reference path="notfound.d.ts" />

Behavior with [email protected]

error:

D:\Throwaway\corsarepro>tsc
a.ts:1:22 - error TS6053: File 'D:/Throwaway/corsarepro/notfound.d.ts' not found.

1 /// <reference path="notfound.d.ts" />
                       ~~~~~~~~~~~~~
Found 1 error in a.ts:1

Behavior with tsgo

No error issued

RyanCavanaugh avatar Nov 13 '25 22:11 RyanCavanaugh

Is it considered as the new TS design or a bug? I would like to fix this.

TranNhatHan avatar Nov 14 '25 18:11 TranNhatHan

Bug, there should be an error; some code is just not ported.

jakebailey avatar Nov 14 '25 18:11 jakebailey