Skip to content

Missing error when reference directive file path doesn't exist #2081

@RyanCavanaugh

Description

@RyanCavanaugh

Steps to reproduce

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

Behavior with typescript@5.8

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions