Skip to content

TypeScript language service crashes because of wrong setting in tsconfig.json #35171

Closed
@drzamich

Description

@drzamich

TS template added by @mjbvz

Confirmed TypeScript version: 3.8.0-dev-20191116

Search terms:

  • debug failure
  • crash

  • VSCode Version: 1.40.1
  • OS Version: macOS Mojave 10.14.6

While working on my TypeScript project I wanted to define something in baseUrl and paths fields of compilerOptions in tsconfig.json to avoid ../../../ hell. I did it for the first time so I did not do it correctly. Here's what I added:

    "baseUrl": "./src",               
    "paths": {
      "@interface/**/*" : ["./src/interface/*"],
      "@service/**/*": ["./src/service/**/*"],
      "@controller/**/*": ["./src/controller/**/*"],
    },  

after I did that, the built-in TypeScript language service crashed and did not want to start under no circumstances. It only started working again when I removed the new code from tsconfig.json

Steps to Reproduce:

  1. Clone the drzamich/odjazdowo3.0@b4c97fb
  2. Open the cloned project in VSCode and watch the TypeScript language service crash

Does this issue occur when all extensions are disabled?: Yes

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptCrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions