For Workes & Pages, what is the name of the domain?
What is the error message?
Error: Failed to publish your Function. Got error: Unknown internal error occurred.
What is the issue or error you’re encountering
Unknow internal error after deploying my Nuxt 3 application
What are the steps to reproduce the issue?
I upgraded my Nuxt 2 application to Nuxt 3. After doing that I was unable to deploy my app, the error I am getting is “Error: Failed to publish your Function. Got error: Unknown internal error occurred.” just at the end of the deployment
07:04:44.628 Uploading... (967/970)
07:04:45.091 Uploading... (968/970)
07:04:45.123 Uploading... (969/970)
07:04:45.260 Uploading... (970/970)
07:04:45.260 ✨ Success! Uploaded 3 files (967 already uploaded) (1.50 sec)
07:04:45.260
07:04:46.026 ✨ Upload complete!
07:04:49.657 Success: Assets published!
07:04:51.829 Error: Failed to publish your Function. Got error: Unknown internal error occurred.
07:04:51.829 Note: Not all logs could be displayed, click "Download log" to view more
No more information about the error. Is there anything I can do to get a more descriptive error?
Not sure if running npx wrangler pages dev dist/ on the Nuxt 3 is the same as deploying to cloudflare pages but using the Cloudflare Pages Nuxt 3 preset I got this error:
✘ [ERROR] [nuxt] [request error] [unhandled] [500] s55 is not a function
at null.<anonymous>
(file:.wrangler/tmp/pages-g2xw6i/chunks/build/server.mjs:1:388642)
at .wrangler/tmp/pages-g2xw6i/chunks/build/server.mjs
(file:.wrangler/tmp/pages-g2xw6i/chunks/build/server.mjs:1:388680)
at __init
(file:.//Users/luis-troya/AllanSolutions/benchmark-frontend/.wrangler/tmp/dev-7WNR3e/rj5h09t6vno.js:12:59)
at null.<anonymous>
(file:.wrangler/tmp/pages-g2xw6i/chunks/routes/renderer.mjs:1:128648)
at null.<anonymous> (async
file:.//Users/luis-troya/AllanSolutions/benchmark-frontend/.wrangler/tmp/dev-7WNR3e/rj5h09t6vno.js:178465:20)
at async Kr4
(file:.wrangler/tmp/pages-g2xw6i/chunks/routes/renderer.mjs:1:130385)
at async Object.handler
(file:.wrangler/tmp/pages-g2xw6i/chunks/routes/renderer.mjs:1:132890)
at async Object.handler
(file:.wrangler/tmp/pages-g2xw6i/chunks/runtime.mjs:1:73437)
at null.<anonymous> (async
file:.//Users/luis-troya/AllanSolutions/benchmark-frontend/.wrangler/tmp/dev-7WNR3e/rj5h09t6vno.js:180096:7)
at null.<anonymous> (async
file:.//Users/luis-troya/AllanSolutions/benchmark-frontend/.wrangler/tmp/dev-7WNR3e/rj5h09t6vno.js:183670:26)
✘ [ERROR] [nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'default')
at null.<anonymous>
(file:.wrangler/tmp/pages-g2xw6i/chunks/routes/renderer.mjs:1:128722)
at null.<anonymous> (async
file:.//Users/luis-troya/AllanSolutions/benchmark-frontend/.wrangler/tmp/dev-7WNR3e/rj5h09t6vno.js:178465:20)
at async Kr4
(file:.wrangler/tmp/pages-g2xw6i/chunks/routes/renderer.mjs:1:130385)
at async Object.handler
(file:.wrangler/tmp/pages-g2xw6i/chunks/routes/renderer.mjs:1:132890)
at async Object.handler
(file:.wrangler/tmp/pages-g2xw6i/chunks/runtime.mjs:1:73437)
at null.<anonymous> (async
file:.//Users/luis-troya/AllanSolutions/benchmark-frontend/.wrangler/tmp/dev-7WNR3e/rj5h09t6vno.js:180096:7)
at null.<anonymous> (async
file:.//Users/luis-troya/AllanSolutions/benchmark-frontend/.wrangler/tmp/dev-7WNR3e/rj5h09t6vno.js:183670:26)
at async errorHandler
(file:.wrangler/tmp/pages-g2xw6i/chunks/runtime.mjs:1:139411)
at null.<anonymous> (async
file:.//Users/luis-troya/AllanSolutions/benchmark-frontend/.wrangler/tmp/dev-7WNR3e/rj5h09t6vno.js:180099:76)
at null.<anonymous> (async
file:.//Users/luis-troya/AllanSolutions/benchmark-frontend/.wrangler/tmp/dev-7WNR3e/rj5h09t6vno.js:183670:26)
[wrangler:inf] GET / 500 Internal Server Error (107ms)
[wrangler:inf] GET /favicon.ico/ 404 Not Found (224ms)
Command I used to run the application:
npx nuxi build --preset=cloudflare_pages
wrangler pages deploy dist/
Source:
Note: I just have a custom function in my Nuxt 3 app, the rest of the app is only frontend. Even if I delete that app, I still get the same error.