Files that you want to be included as part of the image that’s then run, need to be in /opt/render/project/. The .cache path shared above would be a level too high. I’m not very familiar with Yarn Plug ‘n’ Play, but I expect there’s a way to configure the cache folder, maybe through an environment variable?
Yep, that makes total sense, and when running the build command, it is installing the files within the project directory. The issue was that when running the start command, it was looking for the packages in /opt/render/.cache rather than in the project directory.
I just had a successful build and start by setting the YARN_CACHE_FOLDER environment variable to ~/project/src/.yarn/cache, and the app is accessible now.
Thanks for the reply, hopefully this helps someone else stuck with the same issue