Nuxt2 start fails due to generated .nuxt folder getting trashed in build process

Project id: 0e425c43-fae4-4ebe-9c4c-84a654d8cc1b
I recently upgraded to nixpacks and it seems that when the docker container is created, it trashes the generated .nuxt folder which results in this error during the deploy process:
# Nuxt fatal error
Error: No build files found in /app/.nuxt/dist/server.
# Nuxt fatal error
Error: No build files found in /app/.nuxt/dist/server.
I've tried to preserve this folder through adding cacheDirectories: ['.nuxt', '/app/.nuxt'] to package.json to no avail. Any help is greatly appreciated πŸ™
3 Replies
Percy
Percyβ€’2mo ago
Project ID: 0e425c43-fae4-4ebe-9c4c-84a654d8cc1b
Brody
Brodyβ€’2mo ago
your yarn build never finished, as per your build logs -
Error: error:0308010C:digital envelope routines::unsupported
Error: error:0308010C:digital envelope routines::unsupported
divinedimples.
divinedimples.OPβ€’2mo ago
thanks! If anyone else runs into this error, you can get around it by prefixing your build command: NODE_OPTIONS=--openssl-legacy-provider yarn build
Want results from more Discord servers?
Add your server