img
CDCloudflare Developers
•Created by img on 12/6/2023 in #pages-help
Deploying Nuxt to Pages - path errors
Hi,
During deployment, I get the following errors:
[error] [nitro] Error: Could not load /opt/buildhome/repo/dist/dist/server/styles.mjs (imported by node_modules/nuxt/dist/core/runtime/nitro/renderer.js): ENOENT: no such file or directory, open '/opt/buildhome/repo/dist/dist/server/styles.mjs'
[error] Could not load /opt/buildhome/repo/dist/dist/server/styles.mjs (imported by node_modules/nuxt/dist/core/runtime/nitro/renderer.js): ENOENT: no such file or directory, open '/opt/buildhome/repo/dist/dist/server/styles.mjs'
The folder structure is fine (double /dist/ folder) and the files are in GitHub. The site also works fine locally. Not really sure how to investigate it. Any pointers are appreciated.
80 replies