"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
7 Replies
Walshy
Walshy4mo ago
Another here if you're still around @Nolan
Nolan
Nolan4mo 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
maciej
maciej4mo ago
Thank you very much!
Nolan
Nolan4mo ago
Anytime!
maciej
maciej4mo ago
@Nolan can I ask for you another check again? Deployment ID: 0a996598-0b89-4ea9-ba9d-cb422a6791d5
Walshy
Walshy4mo ago
Uncaught TypeError: Cannot read properties of undefined (reading 'includes') at functionsWorker-0.8802014134312615.js:85274:47 in get platform at functionsWorker-0.8802014134312615.js:87977:42 in KeyboardManager at functionsWorker-0.8802014134312615.js:88081:43 in <static_initializer> at functionsWorker-0.8802014134312615.js:88050:37 in Object.defineProperty.value at functionsWorker-0.8802014134312615.js:100021:42 in __w_pdfjs_require__ at functionsWorker-0.8802014134312615.js:87541:28 in Object.defineProperty.value at functionsWorker-0.8802014134312615.js:100021:42 in __w_pdfjs_require__ at functionsWorker-0.8802014134312615.js:87406:29 in Object.defineProperty.value at functionsWorker-0.8802014134312615.js:100021:42 in __w_pdfjs_require__ at functionsWorker-0.8802014134312615.js:85530:41 in Object.defineProperty.value
Uncaught TypeError: Cannot read properties of undefined (reading 'includes') at functionsWorker-0.8802014134312615.js:85274:47 in get platform at functionsWorker-0.8802014134312615.js:87977:42 in KeyboardManager at functionsWorker-0.8802014134312615.js:88081:43 in <static_initializer> at functionsWorker-0.8802014134312615.js:88050:37 in Object.defineProperty.value at functionsWorker-0.8802014134312615.js:100021:42 in __w_pdfjs_require__ at functionsWorker-0.8802014134312615.js:87541:28 in Object.defineProperty.value at functionsWorker-0.8802014134312615.js:100021:42 in __w_pdfjs_require__ at functionsWorker-0.8802014134312615.js:87406:29 in Object.defineProperty.value at functionsWorker-0.8802014134312615.js:100021:42 in __w_pdfjs_require__ at functionsWorker-0.8802014134312615.js:85530:41 in Object.defineProperty.value
maciej
maciej4mo ago
thank you very much!
Want results from more Discord servers?
Add your server
More Posts