Skip to content

TS 5 Regression. tsconfig extends stop resolving references to node_modules #53314

@Vidda777

Description

@Vidda777

Bug Report

🔎 Search Terms

TS 5, tsconfig, extends, node modules

🕗 Version & Regression Information

5.0.2

In latest stable build, 4.9.5, tsconfig extends resolve correctly references to libraries on node modules. However, after trying out 5.0.2 it has stop working

  • This changed between versions 4.9.5 and 5.0.2

⏯ Playground Link

No Playground, I quickly check and there is no support for tsconfig, package.json,...

💻 Code

No code, it's just configuration. Having a package.json declaring

 "devDependencies": {
    "@mylibrary/commons": "1.0.0",
    "typescript": "5.0.2"
  }

and a tsconfig with:
"extends": "@mylibrary/commons/configs/tsconfig.backend.json",

🙁 Actual behavior

The command tsc --build finish with error:

tsconfig.json:2:14 - error TS6053: File '@mylibrary/commons/configs/tsconfig.backend.json' not found.

2   "extends": "@mylibrary/commons/configs/tsconfig.backend.json",

🙂 Expected behavior

The command tsc --build finish correctly.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions