When renaming or deleting a file triggers a No such file or directory when running the app locally in development, it's caused by the outdated cache in the .next folder.
Solution
Delete the .next folder and re-run the application in development locally