Hi there!
I’m a long time cloudflare pages user, never had any problem before but since two days i’m not able to build any pages app that has functions as it logs this right after function compilation
12:03:49.332 Found Functions directory at /functions. Uploading.
12:03:50.419 ✨ Compiled Worker successfully
12:03:50.422
12:03:50.511 ✘ [ERROR] ENOENT: no such file or directory, open '/pages/build_tool/js/.wrangler/tmp/pages-1ZFMaG/functionsWorker-0.2930947432200728.js'
12:03:50.511
12:03:50.512
12:03:50.512 If you think this is a bug then please create an issue at https://github.com/cloudflare/workers-sdk/issues/new/choose
12:03:50.512 ? Would you like to report this error to Cloudflare?
12:03:50.512 🤖 Using fallback value in non-interactive context: no
12:03:50.515 🪵 Logs were written to "/root/.config/.wrangler/logs/wrangler-2024-03-29_11-03-50_124.log"
12:03:50.528 Failed building Pages Functions.
12:03:52.232 Failed: generating Pages Functions failed. Check the logs above for more information. If this continues for an unknown reason, contact support: https://cfl.re/3WgEyrH
I also tried to build the functions locally and they work as intended.
Is there anything i can do to read the logs or get help with this weird behaviour?
The Pages deployment ID is a unique build identifier.
It’s the UUID in the browser bar (for example, a URL would be dash.cloudflare.com/ACCOUNT_ID/pages/view/PROJECT/DEPLOYMENT_ID where the deployment ID looks something like a398d794-7322-4c97-96d9-40b5140a8d9b).
This ID can help troubleshoot some issues with Pages builds so if you have a failing build make sure you grab that ID for the Pages team to use.
I am also having the same issue - we never had a wrangler.toml file - the guides at the time didn’t have anything about that file for adding functions in front of pages sites.
What is the fix? all my deployments are now failing suddenly