Parcel.js “ENOENT: no such file or directory” on build

Problem

Running Parcel.js build command (e.g. I run `npm run dev` script) to build and start the site with generates an error similar to the following:

D:\Workspaces\my-project\my-folder\my-file.vue: ENOENT: no such file or directory, open 'D:\Workspaces\my-project\my-folder\my-file.vue'
Error: ENOENT: no such file or directory, open 'D:\Workspaces\my-project\my-folder\my-file.vue'

Solution

Delete the .cache and dist folders and re-run the build command.

References

https://stackoverflow.com/questions/59196917/parcel-bundler-enoent-no-such-file-or-directory-when-delete-files-from-projec