JulianMar / nuxt-bugsnag

Bugsnag module for nuxt.js
MIT License
49 stars 18 forks source link

Error deploying to Cloudflare pages #62

Closed ercsctt closed 9 months ago

ercsctt commented 12 months ago

Hey, just trying to get this working with my Nuxt 3.7.4 app deployed to Cloudflare Pages.

However, as soon as I add the "nuxt-bugsnag" module in my config and deploy, this error occurs:

14:30:38.602 | ├─ dist/favicon.ico (4.29 kB) (510 B gzip)
-- | --
14:30:38.602 | └─ dist/nitro.json (182 B) (146 B gzip)
14:30:38.602 | Σ Total size: 1.51 MB (468 kB gzip)
14:30:38.602 | [success] [nitro] You can preview this build using `npx wrangler pages dev dist/`
14:30:38.603 | [success] [nitro] You can deploy this build using `npx wrangler pages deploy dist/`
14:30:38.771 | Finished
14:30:38.771 | Found _worker.js in output directory. Uploading.
14:30:40.508 | ✨ Compiled Worker successfully
14:30:40.560 | Found _routes.json in output directory. Uploading.
14:30:40.579 | Validating asset output directory
14:30:41.520 | Deploying your site to Cloudflare's global network...
14:30:46.618 | Uploading... (20/21)
14:30:47.197 | Uploading... (21/21)
14:30:47.197 | ✨ Success! Uploaded 1 files (20 already uploaded) (1.04 sec)
14:30:47.198 |  
14:30:47.616 | ✨ Upload complete!
14:30:49.824 | Success: Assets published!
14:30:51.095 | Error: Failed to publish your Function. Got error: Uncaught TypeError: Cannot read properties of undefined (reading 'toString')   at functionsWorker-0.30169137203254914.js:5922:55   at functionsWorker-0.30169137203254914.js:6516:2

This then fails the deployment, so I'm unable to use this module. I've tried differing config options (just my API key, with/without publishRelease, etc) but it just doesn't work.

Any ideas?

JulianMar commented 11 months ago

Can you share a reproduction or in what line of code this is happening?

JulianMar commented 11 months ago

@ercsctt Did you have an change to create a reproduction?