microsoft / microsoft/TypeScript

Removing `node_modules`, running `npm ci` leaves diagnostics behind in ts and tsconfig files

Open
#58,359 0 comments 0 reactions 1 assignee View on GitHub

@sheetalkamat is already working on this.

Since May 2, 2024.

Needs Investigation
Dominant language
Go
Stars
111k
Forks
14.3k
Avg merge
1d 19h
Merged PRs (30d)
117

Description

Acknowledgement
  • I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion.
Comment

I've been having quite a few watcher problems recently, and have been collecting log files to try and report the problem.

The last two come from doing npm ci inside of https://github.com/jakebailey/every-ts and https://github.com/jakebailey/hereby, but the first one is a very very simple project: https://github.com/jakebailey/ts-watcher-issue-1

In that one, the first trace is just me opening the already-installed repo, running rm -rf node_modules, waiting for the errors to appear in index.ts and tsconfig.json, and then doing npm ci. The errors in tsconfig.json do not disappear.

image

In this example, it also reproduces in --watch mode.

ts-watcher-issue-1

I also experience this within the TS repo, but I haven't been able to get a trace of that one yet.

@sheetalkamat

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.