N
Nuxt7mo ago
Zampa

Can't deploy to Cloudflare with 3.12.2

I am still seeing an "unknown internal error" when deploying to Cloudflare Pages using Nuxt 3.12.1 or 3.12.2. Nuxt 3.11.2 deploys fine. The end of my Cloudflare deployment log looks like this:
17:01:36.251 ✨ Compiled Worker successfully
17:01:37.042 Found _routes.json in output directory. Uploading.
17:01:37.060 Validating asset output directory
17:01:39.998 Deploying your site to Cloudflare's global network...
17:01:50.855 Parsed 15 valid header rules.
17:01:52.919 Uploading... (450/1087)
17:01:54.597 Uploading... (662/1087)
17:01:54.699 Uploading... (874/1087)
17:01:54.813 Uploading... (1087/1087)
17:01:54.814 ✨ Success! Uploaded 637 files (450 already uploaded) (2.82 sec)
17:01:54.814
17:01:55.445 ✨ Upload complete!
17:01:56.800 Uploading to dependency cache
17:01:56.808 Uploading to build output cache
17:01:57.139 Success: Build output uploaded to build cache.
17:02:00.109 Success: Dependencies uploaded to build cache.
17:02:04.266 Success: Assets published!
17:02:06.940 Error: Failed to publish your Function. Got error: Unknown internal error occurred.
17:02:06.940 Note: Not all logs could be displayed, click "Download log" to view more
17:01:36.251 ✨ Compiled Worker successfully
17:01:37.042 Found _routes.json in output directory. Uploading.
17:01:37.060 Validating asset output directory
17:01:39.998 Deploying your site to Cloudflare's global network...
17:01:50.855 Parsed 15 valid header rules.
17:01:52.919 Uploading... (450/1087)
17:01:54.597 Uploading... (662/1087)
17:01:54.699 Uploading... (874/1087)
17:01:54.813 Uploading... (1087/1087)
17:01:54.814 ✨ Success! Uploaded 637 files (450 already uploaded) (2.82 sec)
17:01:54.814
17:01:55.445 ✨ Upload complete!
17:01:56.800 Uploading to dependency cache
17:01:56.808 Uploading to build output cache
17:01:57.139 Success: Build output uploaded to build cache.
17:02:00.109 Success: Dependencies uploaded to build cache.
17:02:04.266 Success: Assets published!
17:02:06.940 Error: Failed to publish your Function. Got error: Unknown internal error occurred.
17:02:06.940 Note: Not all logs could be displayed, click "Download log" to view more
There's nothing in the full log that indicates what the internal error is. Nuxt client built successfully:
17:00:43.082 [info] ✓ built in 17.04s
17:00:43.082 [success] Client built in 17051ms
17:00:43.082 [info] ✓ built in 17.04s
17:00:43.082 [success] Client built in 17051ms
Nuxt server built successfully:
17:00:55.219 [info] ✓ built in 12.02s
17:00:55.220 [success] Server built in 12047ms
17:00:57.057 [success] [nitro] Generated public dist
17:00:55.219 [info] ✓ built in 12.02s
17:00:55.220 [success] Server built in 12047ms
17:00:57.057 [success] [nitro] Generated public dist
I'm not sure what changed in 3.12.x that is causing CF Pages to fail?
13 Replies
Smef
Smef7mo ago
We've seen this before as well. This is a Cloudflare thing Sometimes their stuff is just down You can try re-running an older version in your build history and you'll probably see the same thing
Zampa
ZampaOP7mo ago
@Smef if I redeploy with the only change being that I revert Nuxt to 3.11.2 and the resulting updated lockfile, it deploys successfully.
17:12:12.930 ✨ Compiled Worker successfully
17:12:13.437 Found _routes.json in output directory. Uploading.
17:12:13.450 Validating asset output directory
17:12:15.867 Deploying your site to Cloudflare's global network...
17:12:18.764 Parsed 15 valid header rules.
17:12:20.638 Uploading... (453/1087)
17:12:22.053 Uploading... (664/1087)
17:12:22.401 Uploading... (875/1087)
17:12:23.262 Uploading... (1087/1087)
17:12:23.263 ✨ Success! Uploaded 634 files (453 already uploaded) (3.35 sec)
17:12:23.263
17:12:23.794 ✨ Upload complete!
17:12:25.149 Uploading to dependency cache
17:12:25.158 Uploading to build output cache
17:12:25.526 Success: Build output uploaded to build cache.
17:12:28.523 Success: Dependencies uploaded to build cache.
17:12:31.051 Success: Assets published!
17:12:35.160 Success: Your site was deployed!
17:12:12.930 ✨ Compiled Worker successfully
17:12:13.437 Found _routes.json in output directory. Uploading.
17:12:13.450 Validating asset output directory
17:12:15.867 Deploying your site to Cloudflare's global network...
17:12:18.764 Parsed 15 valid header rules.
17:12:20.638 Uploading... (453/1087)
17:12:22.053 Uploading... (664/1087)
17:12:22.401 Uploading... (875/1087)
17:12:23.262 Uploading... (1087/1087)
17:12:23.263 ✨ Success! Uploaded 634 files (453 already uploaded) (3.35 sec)
17:12:23.263
17:12:23.794 ✨ Upload complete!
17:12:25.149 Uploading to dependency cache
17:12:25.158 Uploading to build output cache
17:12:25.526 Success: Build output uploaded to build cache.
17:12:28.523 Success: Dependencies uploaded to build cache.
17:12:31.051 Success: Assets published!
17:12:35.160 Success: Your site was deployed!
Smef
Smef7mo ago
Hmmm... well that's very odd We've had that "Unknown internal error occurred." message and it just works fine when we try it later
Zampa
ZampaOP7mo ago
It did the same thing with 3.12.1
Smef
Smef7mo ago
I've submitted tickets before and they just say "something was broken, sorry!"
Zampa
ZampaOP7mo ago
so it's some change that occurred between 3.11.2 and 3.12.1 I thought I'd try 3.12.2 today to see if a bugfix handled it, but no luck yet I've submitted a ticket, but I doubt that it's a Cloudflare issue since the Nuxt version is the only thing that's changed.
Smef
Smef7mo ago
Hmmm, if you can do an earlier version if you run them back-to-back, yeah, it doesn't sound like CF
Zampa
ZampaOP7mo ago
Would any of this need to change when using the new /app dir stucture? I would have thought the .output would be the same regardless of your project's structure?
No description
Zampa
ZampaOP7mo ago
I think it might be the /app structure that's causing CF Pages to fail...
Cake
Cake7mo ago
what's the new app structure? @Nathan Chase can't find it in the docs
Zampa
ZampaOP7mo ago
Cake
Cake7mo ago
thanks!
Zampa
ZampaOP7mo ago
Yeah, it's definitely just the Nuxt version. 3.11.2 deploys fine. 3.12.0 fails.
Want results from more Discord servers?
Add your server