'yarn run build gives error directory not found

I completed a blog in Next js and I uploaded it on github : https://github.com/xspd3000/frontend

I want to deploy it on Vercel but it gave me error

    > Build error occurred
[Error: ENOENT: no such file or directory, scandir 'C:/projects/tailgradient/frontend/data/posts'] {
  type: 'Error',
  errno: -2,
  code: 'ENOENT',
  syscall: 'scandir',
  path: 'C:/projects/tailgradient/frontend/data/posts'
}

how can I solve this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source