Summary
When running Parcel during a deployment, it fails with
🚨 /opt/build/repo/website/resources/denys-nevozhai-3i5kX5LVDV0_450.jpg: ENOENT: no such file or directory, open '/opt/build/repo/website/resources/denys-nevozhai-3i5kX5LVDV0_450.jpg'
This file is present both in Netlify and on Git.
Debug attempts
I’ve verified that the files exist in Netlify by prepending echo $PWD && ls -l && ls -l resources
to the build command. This outputs
7:14:56 AM: > echo $PWD && ls -l && ls -l resources && parcel build ./index.html
7:14:56 AM: /opt/build/repo/website
7:14:56 AM: total 272
7:14:56 AM: drwxr-xr-x 2 buildbot root 4096 Nov 28 06:14 css
7:14:56 AM: -rw-r--r-- 1 buildbot root 2737 Nov 28 06:14 index.html
7:14:56 AM: drwxr-xr-x 2 buildbot root 4096 Nov 28 06:14 js
7:14:56 AM: drwxr-xr-x 545 buildbot nogroup 20480 Nov 28 06:14 node_modules
7:14:56 AM: -rw-r--r-- 1 buildbot root 348 Nov 28 06:14 package.json
7:14:56 AM: drwxr-xr-x 3 buildbot root 4096 Nov 28 06:14 parcel
7:14:56 AM: drwxr-xr-x 2 buildbot root 4096 Nov 28 06:14 resources
7:14:56 AM: -rw-r--r-- 1 buildbot root 231367 Nov 28 06:14 yarn.lock
7:14:56 AM: total 32248
7:14:56 AM: -rw-r--r-- 1 buildbot root 1675540 Nov 28 06:14 asgeir-pall-juliusson--90kxRqKSmc.jpg
7:14:56 AM: -rw-r--r-- 1 buildbot root 1468361 Nov 28 06:14 denys-nevozhai-3i5kX5lVDV0_1920.jpg
7:14:56 AM: -rw-r--r-- 1 buildbot root 87544 Nov 28 06:14 denys-nevozhai-3i5kX5lVDV0_450.jpg
7:14:56 AM: -rw-r--r-- 1 buildbot root 337864 Nov 28 06:14 denys-nevozhai-3i5kX5lVDV0_900.jpg
7:14:56 AM: -rw-r--r-- 1 buildbot root 3433946 Nov 28 06:14 denys-nevozhai-3i5kX5lVDV0.jpg
7:14:56 AM: -rw-r--r-- 1 buildbot root 524533 Nov 28 06:14 glebson-kozenko-1v-snxcyHHk_900.jpg
7:14:56 AM: -rw-r--r-- 1 buildbot root 11879247 Nov 28 06:14 glebson-kozenko-1v-snxcyHHk.jpg
7:14:56 AM: -rw-r--r-- 1 buildbot root 113289 Nov 28 06:14 jason-leung-oCyVkyV3nBw_450.jpg
7:14:56 AM: -rw-r--r-- 1 buildbot root 376669 Nov 28 06:14 jason-leung-oCyVkyV3nBw_900.jpg
7:14:56 AM: -rw-r--r-- 1 buildbot root 5040031 Nov 28 06:14 jason-leung-oCyVkyV3nBw.jpg
7:14:56 AM: -rw-r--r-- 1 buildbot root 177205 Nov 28 06:14 pascal-meier-tXpD84c8ZwI_450.jpg
7:14:56 AM: -rw-r--r-- 1 buildbot root 642599 Nov 28 06:14 pascal-meier-tXpD84c8ZwI_900.jpg
7:14:56 AM: -rw-r--r-- 1 buildbot root 7233739 Nov 28 06:14 pascal-meier-tXpD84c8ZwI.jpg
As you can see, the file exists and is in the correct directory.
I am suspecting that this is a Parcel issue, since the other support thread with this problem also uses Parcel, and the file seems to exist in the the deployment VM. Regardless, I posted here for Netlify-specific input.
Netlify ID
frosty-neumann-29ea7c