nuxt / nuxt

The Intuitive Vue Framework.
https://nuxt.com
MIT License
54.42k stars 4.97k forks source link

Cannot deploy to cloudflare pages #27605

Closed carlosvaldesweb closed 3 months ago

carlosvaldesweb commented 3 months ago

Environment


Reproduction

https://stackblitz.com/edit/github-yebevt?file=nuxt.config.ts

Describe the bug

Hello, I am deploying an application to Cloudflare Pages, but I am receiving this message. I am using Nuxt Hub, by the way, congratulations on that! Also i've tried directly on cloudflare pages and is the same.

Iv'e noticed this message at end.

18:22:58.106 | ✨ Success! Uploaded 3 files (472 already uploaded) (1.42 sec)
-- | --
18:22:58.106 |  
18:22:58.597 | ✨ Upload complete!
18:23:01.311 | Success: Assets published!
18:23:02.431 | Error: Failed to publish your Function. Got error: Uncaught TypeError: Cannot read properties of undefined (reading 'toString')   at chunks/runtime.mjs:1:193088   at chunks/runtime.mjs:1:216534

I've uploaded logs, because are bigs to paste here cloudflare_pages.log

Additional context

No response

Logs

No response

stackblitz[bot] commented 3 months ago

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

danielroe commented 3 months ago

Would you be able to make your reproduction more minimal, please? 🙏

There are a lot of modules in that nuxt.config file.

github-actions[bot] commented 3 months ago

Would you be able to provide a reproduction? 🙏

More info ### Why do I need to provide a reproduction? Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making. ### What will happen? If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritize it based on its severity and how many people we think it might affect. If `needs reproduction` labeled issues don't receive any substantial activity (e.g., new comments featuring a reproduction link), we'll close them. That's not because we don't care! At any point, feel free to comment with a reproduction and we'll reopen it. ### How can I create a reproduction? We have a couple of templates for starting with a minimal reproduction: 👉 https://stackblitz.com/github/nuxt/starter/tree/v3-stackblitz 👉 https://codesandbox.io/s/github/nuxt/starter/v3-codesandbox A public GitHub repository is also perfect. 👌 Please ensure that the reproduction is as **minimal** as possible. See more details [in our guide](https://nuxt.com/docs/community/reporting-bugs/#create-a-minimal-reproduction). You might also find these other articles interesting and/or helpful: - [The Importance of Reproductions](https://antfu.me/posts/why-reproductions-are-required) - [How to Generate a Minimal, Complete, and Verifiable Example](https://stackoverflow.com/help/minimal-reproducible-example)
MickL commented 3 months ago

I am deploying latest Nuxt and Nitro successful to Cloudflare Pages:

- Nuxt Version:     3.12.1
- CLI Version:      3.12.0
- Nitro Version:    2.9.6
- Package Manager:  bun@1.1.13
- Runtime Modules:  @nuxt/image@1.7.0, @nuxtjs/i18n@8.3.1, @pinia/nuxt@^0.5.1, @vueuse/nuxt@10.11.0, @nuxtjs/tailwindcss@^6.12.0, nuxt-icon@^0.6.10, @vee-validate/nuxt@^4.12.8, @nuxtjs/seo@^2.0.0-rc.10, nuxt-og-image`
carlosvaldesweb commented 3 months ago

@danielroe For sure, i was testing modules one by one and is a problem with nuxt-bugsnag module. I've opened an issue in bugsnag repository.