-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
Fix AvailableA PR has been opened for this issueA PR has been opened for this issueNeeds InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.
Milestone
Description
🔎 Search Terms
watch, tsc, tsserver, files, Cannot find module, or its corresponding type declarations
🕗 Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about (tsc v5.4.5)
⏯ Playground Link
https://github.com/2767mr/tsbug
💻 Code
No response
🙁 Actual behavior
After deleting and regenerating a large amount of auto-generated files, typescript reports an error as seen below when using --watch. This also affects the VS Code tsserver.
src/main.ts:1:32 - error TS2307: Cannot find module './app/services/generated' or its corresponding type declarations.
1 import { TranslationDto } from "./app/services/generated";
🙂 Expected behavior
Typescript should pick up new files even when there are a lot of them.
Additional information about the issue
Reproduction:
- Clone https://github.com/2767mr/tsbug
npm install- Open one terminal with
npm run watch - After a few seconds, open another terminal with
npm run copy
Here is the tsserver log that is created when doing this: tsserver.log
Possibly related issues:
#57330
#22710
#37514
#54511 (same use case as we have - but on our end it does not work at all instead of being slow)
Metadata
Metadata
Assignees
Labels
Fix AvailableA PR has been opened for this issueA PR has been opened for this issueNeeds InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.