Error UNHANDLED REJECTION ENOENT: no such file or directory, open "/opt/build/repo/site/public/page-data/product-category/bases/bar-bases/page-data.json"

it means that there is a missing file or directory there :upside_down_face:

I assume the same thing happens when you build locally; our builds will not work differently than your own local builds.

General high-level advice: If you are trying to write a file, make sure the directory is created first; If you are trying to read from a file you may have the path wrong?

This may be a better way to approach debugging build issues from the top down:

1 Like