Why does Prettier sometimes cause VS Code to report errors related to file deletion even when the file seems to be deleted?

Responsive Ad Header

Question

Grade: Education Subject: Support
Why does Prettier sometimes cause VS Code to report errors related to file deletion even when the file seems to be deleted?
Asked by:
123 Viewed 123 Answers

Answer (123)

Best Answer
(326)
VS Code's file system watcher might not immediately recognize the deletion, leading to a temporary discrepancy. Restarting VS Code usually resolves this. The error might also be a false positive from an extension that hasn't updated its file index. Try reloading the VS Code window (Ctrl+Shift+P, then type 'Reload Window').