tradermaths
CDCloudflare Developers
•Created by tradermaths on 12/15/2024 in #pages-help
Fetch failed
Working on deploying a nuxt app for a few days now.
This is my command: npx wrangler pages deploy dist/ --project-name soniarates --skip-caching
With the following results:
✨ Compiled Worker successfully
✨ Uploading Worker bundle
✨ Uploading _routes.json
X [ERROR] fetch failed
Then in the logs :
TypeError: fetch failed
at fetch (C:\Users\
at async performApiFetch (C:\Users\
at async fetchInternal (C:\Users\
at async fetchResult (C:\Users\
at async deploy (C:\Users\
at async Object.Handler [as handler]
What works:
Wrangler whoami - suggests wrangler login is correctly setup.
What also is going wrong:
I also have been getting inconsistent deployments. When it's done through git integration I get different errors than deploying through command line.
I had some successful deployments but had issues with functions that used date-fns.
Account Id :3264b53f0f9fd4b45a2e473b8ffcbda8
Deploying through nuxthub instead seems to lead to a successful deployment, though still face issues related to date-fns.
2 replies