dword-design / nuxt-mail

Adds email sending capability to a Nuxt.js app. Adds a server route, an injected variable, and uses nodemailer to send emails.
Other
220 stars 16 forks source link

Deploying Nuxt Mail to Cloudflare pages #236

Open mattgrah-am opened 1 month ago

mattgrah-am commented 1 month ago

Has anyone had any success using this module with Cloudflare pages?

When I try to deploy via a Github repo I get the following error at the end of the deployment:

Error: Failed to publish your Function. Got error: Uncaught TypeError: Class extends value #<Object> is not a constructor or null
  at chunks/runtime.mjs:17962:20

Deploying it via wrangler provides a little more detail:

✘ [ERROR] service core:user:worker: Uncaught TypeError: Class extends value #<Object> is not a constructor or null

    at null.<anonymous> (h0rrzz8k09m.js:15527:5) in .wrangler/tmp/pages-LwLK14/chunks/runtime.mjs
    at null.<anonymous> (h0rrzz8k09m.js:4:59) in __init
    at null.<anonymous> (h0rrzz8k09m.js:17973:1)

✘ [ERROR] MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above.
dword-design commented 1 month ago

Phew no idea. Only thing that comes to my mind is that you need a server, so static pages won't work.