"No deployment available" when deploying from Github Actions

My setup is pretty straightforward. I have a Remix app with a simple build step (remix vite:build). When I run the following commands locally it deploys to Cloudflare successfully.
remix vite:build
npx wrangler@3 pages publish ./build/client --project-name="xxx" --branch="main"
remix vite:build
npx wrangler@3 pages publish ./build/client --project-name="xxx" --branch="main"
but when I use the cloudflare/pages-action@v1 action (which uses the same publish command) I get a failed deployment with "No deployment available" in the dashboard, even though the GH action output says it was successful. Is there a way to debug it? Deployment ID: 5f466361-2c67-4173-b2da-7c2039ea18fb
W
Walshy18d ago
Another here if you're still around @Nolan
N
Nolan18d ago
Taking a look here Looks like we've got edge_deployment_failed on our end with the following output.
deploy_worker_failed:Uncaught ReferenceError: module is not defined at functionsWorker-0.39500146473810593.js:69347:5 in ../node_modules/.prisma/client/default.js at functionsWorker-0.39500146473810593.js:15:56 in __init at functionsWorker-0.39500146473810593.js:69376:11 in ../node_modules/@prisma/client/default.js at functionsWorker-0.39500146473810593.js:18:50 in __require2 at functionsWorker-0.39500146473810593.js:73846:29 in ../build/server/index.js at functionsWorker-0.39500146473810593.js:15:56 in __init at functionsWorker-0.39500146473810593.js:74043:5 in [[path]].ts at functionsWorker-0.39500146473810593.js:15:56 in __init at functionsWorker-0.39500146473810593.js:74054:5 in ../.wrangler/tmp/pages-tEFGoM/functionsRoutes-0.9052543939292694.mjs at functionsWorker-0.39500146473810593.js:15:56 in __init
deploy_worker_failed:Uncaught ReferenceError: module is not defined at functionsWorker-0.39500146473810593.js:69347:5 in ../node_modules/.prisma/client/default.js at functionsWorker-0.39500146473810593.js:15:56 in __init at functionsWorker-0.39500146473810593.js:69376:11 in ../node_modules/@prisma/client/default.js at functionsWorker-0.39500146473810593.js:18:50 in __require2 at functionsWorker-0.39500146473810593.js:73846:29 in ../build/server/index.js at functionsWorker-0.39500146473810593.js:15:56 in __init at functionsWorker-0.39500146473810593.js:74043:5 in [[path]].ts at functionsWorker-0.39500146473810593.js:15:56 in __init at functionsWorker-0.39500146473810593.js:74054:5 in ../.wrangler/tmp/pages-tEFGoM/functionsRoutes-0.9052543939292694.mjs at functionsWorker-0.39500146473810593.js:15:56 in __init
M
maciej18d ago
Thank you very much!
N
Nolan18d ago
Anytime!
Want results from more Discord servers?
Add your server
More Posts
Pages deployments failing (wrangler deploy)I'm attempting to deploy to an existing Remix (vite with cf) to Pages. Everything has been smooth unworkers-rs repo RA feature detectionDoes anyone else have the problem that rust-analyzer doesn't properly detect the enabled features inDynamically import incompatible packages for dev onlyI am currently dynamically importing a package that is incompatible in workers just during developmeDeploy by pushHello is it possible to deploy changes with git push like it's on vercel for my worker? or i have maAre the api docs for updating worker settings wrong?Specifically looking at this request: https://developers.cloudflare.com/api/operations/worker-scriptHow to access worker queue producer bindings in local development?At boot I see this message: ``` wrangler.toml changed... Using vars defined in .dev.vars Your workeNeed some help on collecting coverage in workers.I know that the coverage via V8 is not possible, but via istanbul it does not collect coverage as weHey there! I'm having some trouble with an SSL free certificate on my website. CloudFlare is active.So I've been trying for days now but I can't get the certification of the SSL.Identity theft reportHow can I contact Cloudflare support to remove from their platform a page that is impersonating a paZero Trust - How to filter Web Socket trafficHi, I'm using an app (iray server) that uses the same port (9090) for the web UI dashboard and WebSoCan you forward certain requests from a Cloudflare Pages site to a different domain?Hello! I'm looking to see if I could deploy a site using PayloadCMS with Cloudflare Pages. They haveHi! I want to pwd-protect my Page. How to do it with Functions?I have a static page set up, live, working. I want to add password protection to the page. I found a